From 2b2a033b7ebff4f2d8f2942560e956277941ca7f Mon Sep 17 00:00:00 2001 From: Isaac Grynsztein Date: Fri, 20 Mar 2020 16:16:10 -0400 Subject: [PATCH] Added extensions settings where information on extensions can be found and bookmarklet is generated Created arg modifier dialog to assist in editing youtube-dl args - This arg dialog contains all the available args and their description - Includes a convenient search bar and categorized list of args to help you find the one you're looking for, or just explore what's available. Arg modifier is available for both global args (in settings) and local args (in the advanced mode) --- src/app/app.module.ts | 14 +- .../arg-modifier-dialog.component.html | 68 ++ .../arg-modifier-dialog.component.scss | 3 + .../arg-modifier-dialog.component.spec.ts | 25 + .../arg-modifier-dialog.component.ts | 117 ++ .../arg-modifier-dialog/youtubedl_args.ts | 230 ++++ src/app/main/main.component.css | 5 + src/app/main/main.component.html | 1 + src/app/main/main.component.ts | 17 +- src/app/settings/settings.component.html | 33 + src/app/settings/settings.component.scss | 4 + src/app/settings/settings.component.ts | 55 +- src/locale/messages.es.xlf | 987 ---------------- src/locale/messages.xlf | 1003 ----------------- 14 files changed, 568 insertions(+), 1994 deletions(-) create mode 100644 src/app/dialogs/arg-modifier-dialog/arg-modifier-dialog.component.html create mode 100644 src/app/dialogs/arg-modifier-dialog/arg-modifier-dialog.component.scss create mode 100644 src/app/dialogs/arg-modifier-dialog/arg-modifier-dialog.component.spec.ts create mode 100644 src/app/dialogs/arg-modifier-dialog/arg-modifier-dialog.component.ts create mode 100644 src/app/dialogs/arg-modifier-dialog/youtubedl_args.ts delete mode 100644 src/locale/messages.es.xlf delete mode 100644 src/locale/messages.xlf diff --git a/src/app/app.module.ts b/src/app/app.module.ts index e88d6fb..00dc243 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -1,10 +1,12 @@ import { BrowserModule } from '@angular/platform-browser'; +import {BrowserAnimationsModule} from '@angular/platform-browser/animations'; import { NgModule, LOCALE_ID } from '@angular/core'; import { registerLocaleData } from '@angular/common'; import { MatButtonModule } from '@angular/material/button'; import { MatButtonToggleModule } from '@angular/material/button-toggle'; import { MatCardModule } from '@angular/material/card'; import { MatCheckboxModule } from '@angular/material/checkbox'; +import { MatAutocompleteModule } from '@angular/material/autocomplete'; import { MatNativeDateModule, MatRippleModule } from '@angular/material/core'; import { MatDialogModule } from '@angular/material/dialog'; import { MatExpansionModule } from '@angular/material/expansion'; @@ -13,6 +15,7 @@ import { MatIconModule } from '@angular/material/icon'; import { MatInputModule } from '@angular/material/input'; import { MatListModule } from '@angular/material/list'; import { MatMenuModule } from '@angular/material/menu'; +import { MatTooltipModule } from '@angular/material/tooltip'; import { MatProgressBarModule } from '@angular/material/progress-bar'; import { MatProgressSpinnerModule } from '@angular/material/progress-spinner'; import { MatRadioModule } from '@angular/material/radio'; @@ -24,7 +27,6 @@ import { MatToolbarModule } from '@angular/material/toolbar'; import {DragDropModule} from '@angular/cdk/drag-drop'; import {FormsModule, ReactiveFormsModule} from '@angular/forms'; import { AppComponent } from './app.component'; -import {BrowserAnimationsModule} from '@angular/platform-browser/animations'; import { HttpModule } from '@angular/http'; import { HttpClientModule, HttpClient } from '@angular/common/http'; import { PostsService } from 'app/posts.services'; @@ -50,6 +52,7 @@ import { SettingsComponent } from './settings/settings.component'; import es from '@angular/common/locales/es'; import { AboutDialogComponent } from './dialogs/about-dialog/about-dialog.component'; import { VideoInfoDialogComponent } from './dialogs/video-info-dialog/video-info-dialog.component'; +import { ArgModifierDialogComponent, HighlightPipe } from './dialogs/arg-modifier-dialog/arg-modifier-dialog.component'; registerLocaleData(es, 'es'); export function isVisible({ event, element, scrollContainer, offset }: IsVisibleProps) { @@ -72,7 +75,9 @@ export function isVisible({ event, element, scrollContainer, offset }: IsVisible SubscriptionInfoDialogComponent, SettingsComponent, AboutDialogComponent, - VideoInfoDialogComponent + VideoInfoDialogComponent, + ArgModifierDialogComponent, + HighlightPipe ], imports: [ BrowserModule, @@ -103,6 +108,8 @@ export function isVisible({ event, element, scrollContainer, offset }: IsVisible MatDialogModule, MatSlideToggleModule, MatMenuModule, + MatAutocompleteModule, + MatTooltipModule, DragDropModule, VgCoreModule, VgControlsModule, @@ -116,6 +123,9 @@ export function isVisible({ event, element, scrollContainer, offset }: IsVisible providers: [ PostsService ], + exports: [ + HighlightPipe + ], bootstrap: [AppComponent] }) export class AppModule { } diff --git a/src/app/dialogs/arg-modifier-dialog/arg-modifier-dialog.component.html b/src/app/dialogs/arg-modifier-dialog/arg-modifier-dialog.component.html new file mode 100644 index 0000000..b86db12 --- /dev/null +++ b/src/app/dialogs/arg-modifier-dialog/arg-modifier-dialog.component.html @@ -0,0 +1,68 @@ +

Modify youtube-dl args

+ + +
+
+
+ +
Simulated new args
+ + + +
+
+
+ +
Add an arg
+
+
+ + + + + + + + + + +
+ + + + + + + + + + + + + +
+
+
+ Use arg value +
+
+ + + +
+
+
+ +
+
+
+
+
+ + +
+ + + + + \ No newline at end of file diff --git a/src/app/dialogs/arg-modifier-dialog/arg-modifier-dialog.component.scss b/src/app/dialogs/arg-modifier-dialog/arg-modifier-dialog.component.scss new file mode 100644 index 0000000..f2f0ad0 --- /dev/null +++ b/src/app/dialogs/arg-modifier-dialog/arg-modifier-dialog.component.scss @@ -0,0 +1,3 @@ +.info-menu-icon { + float: right; +} \ No newline at end of file diff --git a/src/app/dialogs/arg-modifier-dialog/arg-modifier-dialog.component.spec.ts b/src/app/dialogs/arg-modifier-dialog/arg-modifier-dialog.component.spec.ts new file mode 100644 index 0000000..5b67052 --- /dev/null +++ b/src/app/dialogs/arg-modifier-dialog/arg-modifier-dialog.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { ArgModifierDialogComponent } from './arg-modifier-dialog.component'; + +describe('ArgModifierDialogComponent', () => { + let component: ArgModifierDialogComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ ArgModifierDialogComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(ArgModifierDialogComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/dialogs/arg-modifier-dialog/arg-modifier-dialog.component.ts b/src/app/dialogs/arg-modifier-dialog/arg-modifier-dialog.component.ts new file mode 100644 index 0000000..087a641 --- /dev/null +++ b/src/app/dialogs/arg-modifier-dialog/arg-modifier-dialog.component.ts @@ -0,0 +1,117 @@ +import { Component, OnInit, Inject, Pipe, PipeTransform, NgModule } from '@angular/core'; +import { MAT_DIALOG_DATA, MatDialogRef, MatDialog } from '@angular/material/dialog'; +import { FormControl } from '@angular/forms'; +import { args, args_info } from './youtubedl_args'; +import { Observable } from 'rxjs'; +import { map } from 'rxjs/operators/map'; +import { startWith } from 'rxjs/operators/startWith'; + +@Pipe({ name: 'highlight' }) +export class HighlightPipe implements PipeTransform { + transform(text: string, search): string { + const pattern = search ? search + .replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&') + .split(' ') + .filter(t => t.length > 0) + .join('|') : undefined; + const regex = new RegExp(pattern, 'gi'); + + return search ? text.replace(regex, match => `${match}`) : text; + } +}; + +@Component({ + selector: 'app-arg-modifier-dialog', + templateUrl: './arg-modifier-dialog.component.html', + providers: [HighlightPipe], + styleUrls: ['./arg-modifier-dialog.component.scss'], +}) +export class ArgModifierDialogComponent implements OnInit { + myGroup = new FormControl(); + firstArg = ''; + secondArg = ''; + secondArgEnabled = false; + modified_args = ''; + stateCtrl = new FormControl(); + availableArgs = null; + argsByCategory = null; + argsInfo = null; + filteredOptions: Observable; + + static forRoot() { + return { + ngModule: ArgModifierDialogComponent, + providers: [], + }; + } + + constructor(@Inject(MAT_DIALOG_DATA) public data: any, public dialogRef: MatDialogRef, + private dialog: MatDialog) { } + + ngOnInit(): void { + if (this.data) { + this.modified_args = this.data.initial_args; + } + + this.getAllPossibleArgs(); + + // autocomplete setup + this.filteredOptions = this.stateCtrl.valueChanges + .pipe( + startWith(''), + map(val => this.filter(val)) + ); + } + + // autocomplete filter + filter(val) { + if (this.availableArgs) { + return this.availableArgs.filter(option => + option.key.toLowerCase().includes(val.toLowerCase())); + } + } + + addArg() { + // adds space + if (this.modified_args !== '') { + this.modified_args += ' '; + } + + this.modified_args += this.stateCtrl.value + ' ' + (this.secondArgEnabled ? this.secondArg : ''); + } + + canAddArg() { + return this.stateCtrl.value && this.stateCtrl.value !== '' && (!this.secondArgEnabled || (this.secondArg && this.secondArg !== '')); + } + + getFirstArg() { + return new Promise(resolve => { + resolve(this.stateCtrl.value); + }); + } + + getValueAsync(val) { + return new Promise(resolve => { + resolve(val); + }); + } + + getAllPossibleArgs() { + const all_args = args; + const arg_arrays = Object.keys(all_args).map(function(key) { + return all_args[key]; + }); + + // converts array of arrays to one array + const singular_arg_array = [].concat.apply([], arg_arrays); + + this.availableArgs = singular_arg_array; + this.argsByCategory = all_args; + this.argsInfo = args_info; + } + + setFirstArg(arg_key) { + this.stateCtrl.setValue(arg_key); + } + +} diff --git a/src/app/dialogs/arg-modifier-dialog/youtubedl_args.ts b/src/app/dialogs/arg-modifier-dialog/youtubedl_args.ts new file mode 100644 index 0000000..dab6731 --- /dev/null +++ b/src/app/dialogs/arg-modifier-dialog/youtubedl_args.ts @@ -0,0 +1,230 @@ +const uncategorized = [ + {'key': '-h', 'alt': '--help', 'description': 'Print this help text and exit'}, + {'key': '--version', 'description': 'Print program version and exit'}, + {'key': '-U', 'alt': '--update', 'description': 'Update this program to latest version. Make sure that you have sufficient permissions (run with sudo if needed)'}, + {'key': '-i', 'alt': '--ignore-errors', 'description': 'Continue on download errors, for example to skip unavailable videos in a playlist'}, + {'key': '--abort-on-error', 'description': 'Abort downloading of further videos (in the playlist or the command line) if an error occurs'}, + {'key': '--dump-user-agent', 'description': 'Display the current browser identification'}, + {'key': '--list-extractors', 'description': 'List all supported extractors'}, + {'key': '--extractor-descriptions', 'description': 'Output descriptions of all supported extractors'}, + {'key': '--force-generic-extractor', 'description': 'Force extraction to use the generic extractor'}, + {'key': '--default-search', 'description': 'Use this prefix for unqualified URLs. For example "gvsearch2:" downloads two videos from google videos for youtube-dl "large apple". Use the value "auto" to let youtube-dl guess ("auto_warning" to emit awarning when guessing). "error" just throws an error. The default value "fixup_error" repairs broken URLs, but emits an error if this is not possible instead of searching.'}, + {'key': '--ignore-config', 'description': 'Do not read configuration files. When given in the global configuration file /etc/youtube-dl.conf: Do not read the user configuration in ~/.config/youtube-dl/config (%APPDATA%/youtube-dl/config.txt on Windows)'}, + {'key': '--config-location', 'description': 'Location of the configuration file; either the path to the config or its containing directory.'}, + {'key': '--flat-playlist', 'description': 'Do not extract the videos of a playlist, only list them.'}, + {'key': '--mark-watched', 'description': 'Mark videos watched (YouTube only)'}, + {'key': '--no-mark-watched', 'description': 'Do not mark videos watched (YouTube only)'}, + {'key': '--no-color', 'description': 'Do not emit color codes in output'} +]; + +const network = [ + {'key': '--proxy', 'description': 'Use the specified HTTP/HTTPS/SOCKS proxy.To enable SOCKS proxy, specify a proper scheme. For example socks5://127.0.0.1:1080/. Pass in an empty string (--proxy "") for direct connection.'}, + {'key': '--socket-timeout', 'description': 'Time to wait before giving up, in seconds'}, + {'key': '--source-address', 'description': 'Client-side IP address to bind to'}, + {'key': '-4', 'alt': '--force-ipv4', 'description': 'Make all connections via IPv4'}, + {'key': '-6', 'alt': '--force-ipv6', 'description': 'Make all connections via IPv6'} +]; + +const geo_restriction = [ + {'key': '--geo-verification-proxy', 'description': 'Use this proxy to verify the IP address for some geo-restricted sites. The default proxy specified by --proxy\', if the option is not present) is used for the actual downloading.'}, + {'key': '--geo-bypass', 'description': 'Bypass geographic restriction via faking X-Forwarded-For HTTP header'}, + {'key': '--no-geo-bypass', 'description': 'Do not bypass geographic restriction via faking X-Forwarded-For HTTP header'}, + {'key': '--geo-bypass-country', 'description': 'Force bypass geographic restriction with explicitly provided two-letter ISO 3166-2 country code'}, + {'key': '--geo-bypass-ip-block', 'description': 'Force bypass geographic restriction with explicitly provided IP block in CIDR notation'} +]; + +const video_selection = [ + {'key': '--playlist-start', 'description': 'Playlist video to start at (default is 1)'}, + {'key': '--playlist-end', 'description': 'Playlist video to end at (default is last)'}, + {'key': '--playlist-items', 'description': 'Playlist video items to download. Specify indices of the videos in the playlist separated by commas like: "--playlist-items 1,2,5,8" if you want to download videos indexed 1, 2, 5, 8 in the playlist. You can specify range: "--playlist-items 1-3,7,10-13", it will download the videos at index 1, 2, 3, 7, 10, 11, 12 and 13.'}, + {'key': '--match-title', 'description': 'Download only matching titles (regex orcaseless sub-string)'}, + {'key': '--reject-title', 'description': 'Skip download for matching titles (regex orcaseless sub-string)'}, + {'key': '--max-downloads', 'description': 'Abort after downloading NUMBER files'}, + {'key': '--min-filesize', 'description': 'Do not download any videos smaller than SIZE (e.g. 50k or 44.6m)'}, + {'key': '--max-filesize', 'description': 'Do not download any videos larger than SIZE (e.g. 50k or 44.6m)'}, + {'key': '--date', 'description': 'Download only videos uploaded in this date'}, + {'key': '--datebefore', 'description': 'Download only videos uploaded on or before this date (i.e. inclusive)'}, + {'key': '--dateafter', 'description': 'Download only videos uploaded on or after this date (i.e. inclusive)'}, + {'key': '--min-views', 'description': 'Do not download any videos with less than COUNT views'}, + {'key': '--max-views', 'description': 'Do not download any videos with more than COUNT views'}, + {'key': '--match-filter', 'description': 'Generic video filter. Specify any key (seethe "OUTPUT TEMPLATE" for a list of available keys) to match if the key is present, !key to check if the key is not present, key > NUMBER (like "comment_count > 12", also works with >=, <, <=, !=, =) to compare against a number, key = \'LITERAL\' (like "uploader = \'Mike Smith\'", also works with !=) to match against a string literal and & to require multiple matches. Values which are not known are excluded unless you put a question mark (?) after the operator. For example, to only match videos that have been liked more than 100 times and disliked less than 50 times (or the dislike functionality is not available at the given service), but who also have a description, use --match-filter'}, + {'key': '--no-playlist', 'description': 'Download only the video, if the URL refers to a video and a playlist.'}, + {'key': '--yes-playlist', 'description': 'Download the playlist, if the URL refers to a video and a playlist.'}, + {'key': '--age-limit', 'description': 'Download only videos suitable for the given age'}, + {'key': '--download-archive', 'description': 'Download only videos not listed in the archive file. Record the IDs of all downloaded videos in it.'}, + {'key': '--include-ads', 'description': 'Download advertisements as well (experimental)'} +]; + +const download = [ + {'key': '-r', 'alt': '--limit-rate', 'description': 'Maximum download rate in bytes per second(e.g. 50K or 4.2M)'}, + {'key': '-R', 'alt': '--retries', 'description': 'Number of retries (default is 10), or "infinite".'}, + {'key': '--fragment-retries', 'description': 'Number of retries for a fragment (default is 10), or "infinite" (DASH, hlsnative and ISM)'}, + {'key': '--skip-unavailable-fragments', 'description': 'Skip unavailable fragments (DASH, hlsnative and ISM)'}, + {'key': '--abort-on-unavailable-fragment', 'description': 'Abort downloading when some fragment is not available'}, + {'key': '--keep-fragments', 'description': 'Keep downloaded fragments on disk after downloading is finished; fragments are erased by default'}, + {'key': '--buffer-size', 'description': 'Size of download buffer (e.g. 1024 or 16K) (default is 1024)'}, + {'key': '--no-resize-buffer', 'description': 'Do not automatically adjust the buffer size. By default, the buffer size is automatically resized from an initial value of SIZE.'}, + {'key': '--http-chunk-size', 'description': 'Size of a chunk for chunk-based HTTP downloading (e.g. 10485760 or 10M) (default is disabled). May be useful for bypassing bandwidth throttling imposed by a webserver (experimental)'}, + {'key': '--playlist-reverse', 'description': 'Download playlist videos in reverse order'}, + {'key': '--playlist-random', 'description': 'Download playlist videos in random order'}, + {'key': '--xattr-set-filesize', 'description': 'Set file xattribute ytdl.filesize with expected file size'}, + {'key': '--hls-prefer-native', 'description': 'Use the native HLS downloader instead of ffmpeg'}, + {'key': '--hls-prefer-ffmpeg', 'description': 'Use ffmpeg instead of the native HLS downloader'}, + {'key': '--hls-use-mpegts', 'description': 'Use the mpegts container for HLS videos, allowing to play the video while downloading (some players may not be able to play it)'}, + {'key': '--external-downloader', 'description': 'Use the specified external downloader. Currently supports aria2c,avconv,axel,curl,ffmpeg,httpie,wget'}, + {'key': '--external-downloader-args'} +]; + +const filesystem = [ + {'key': '-a', 'alt': '--batch-file', 'description': 'File containing URLs to download (\'-\' for stdin), one URL per line. Lines starting with \'#\', \';\' or \']\' are considered as comments and ignored.'}, + {'key': '--id', 'description': 'Use only video ID in file name'}, + {'key': '-o', 'alt': '--output', 'description': 'Output filename template, see the "OUTPUT TEMPLATE" for all the info'}, + {'key': '--autonumber-start', 'description': 'Specify the start value for %(autonumber)s (default is 1)'}, + {'key': '--restrict-filenames', 'description': 'Restrict filenames to only ASCII characters, and avoid "&" and spaces in filenames'}, + {'key': '-w', 'alt': '--no-overwrites', 'description': 'Do not overwrite files'}, + {'key': '-c', 'alt': '--continue', 'description': 'Force resume of partially downloaded files. By default, youtube-dl will resume downloads if possible.'}, + {'key': '--no-continue', 'description': 'Do not resume partially downloaded files (restart from beginning)'}, + {'key': '--no-part', 'description': 'Do not use .part files - write directlyinto output file'}, + {'key': '--no-mtime', 'description': 'Do not use the Last-modified header to set the file modification time'}, + {'key': '--write-description', 'description': 'Write video description to a .description file'}, + {'key': '--write-info-json', 'description': 'Write video metadata to a .info.json file'}, + {'key': '--write-annotations', 'description': 'Write video annotations to a.annotations.xml file'}, + {'key': '--load-info-json', 'description': 'JSON file containing the video information (created with the "--write-info-json" option)'}, + {'key': '--cookies', 'description': 'File to read cookies from and dump cookie jar in'}, + {'key': '--cache-dir', 'description': 'Location in the file system where youtube-dl can store some downloaded information permanently. By default $XDG_CACHE_HOME/youtube-dl or ~/.cache/youtube-dl . At the moment, only YouTube player files (for videos with obfuscated signatures) are cached, but that may change.'}, + {'key': '--no-cache-dir', 'description': 'Disable filesystem caching'}, + {'key': '--rm-cache-dir', 'description': 'Delete all filesystem cache files'} +]; + +const thumbnail = [ + {'key': '--write-thumbnail', 'description': 'Write thumbnail image to disk'}, + {'key': '--write-all-thumbnails', 'description': 'Write all thumbnail image formats to disk'}, + {'key': '--list-thumbnails', 'description': 'Simulate and list all available thumbnail formats'} +]; + +const verbosity = [ + {'key': '-q', 'alt': '--quiet', 'description': 'Activate quiet mode'}, + {'key': '--no-warnings', 'description': 'Ignore warnings'}, + {'key': '-s', 'alt': '--simulate', 'description': 'Do not download the video and do not writeanything to disk'}, + {'key': '--skip-download', 'description': 'Do not download the video'}, + {'key': '-g', 'alt': '--get-url', 'description': 'Simulate, quiet but print URL'}, + {'key': '-e', 'alt': '--get-title', 'description': 'Simulate, quiet but print title'}, + {'key': '--get-id', 'description': 'Simulate, quiet but print id'}, + {'key': '--get-thumbnail', 'description': 'Simulate, quiet but print thumbnail URL'}, + {'key': '--get-description', 'description': 'Simulate, quiet but print video description'}, + {'key': '--get-duration', 'description': 'Simulate, quiet but print video length'}, + {'key': '--get-filename', 'description': 'Simulate, quiet but print output filename'}, + {'key': '--get-format', 'description': 'Simulate, quiet but print output format'}, + {'key': '-j', 'alt': '--dump-json', 'description': 'Simulate, quiet but print JSON information. See the "OUTPUT TEMPLATE" for a description of available keys.'}, + {'key': '-J', 'alt': '--dump-single-json', 'description': 'Simulate, quiet but print JSON information for each command-line argument. If the URL refers to a playlist, dump the whole playlist information in a single line.'}, + {'key': '--print-json', 'description': 'Be quiet and print the video information as JSON (video is still being downloaded).'}, + {'key': '--newline', 'description': 'Output progress bar as new lines'}, + {'key': '--no-progress', 'description': 'Do not print progress bar'}, + {'key': '--console-title', 'description': 'Display progress in console title bar'}, + {'key': '-v', 'alt': '--verbose', 'description': 'Print various debugging information'}, + {'key': '--dump-pages', 'description': 'Print downloaded pages encoded using base64 to debug problems (very verbose)'}, + {'key': '--write-pages', 'description': 'Write downloaded intermediary pages to files in the current directory to debug problems'}, + {'key': '--print-traffic', 'description': 'Display sent and read HTTP traffic'}, + {'key': '-C', 'alt': '--call-home', 'description': 'Contact the youtube-dl server for debugging'}, + {'key': '--no-call-home', 'description': 'Do NOT contact the youtube-dl server for debugging'} +]; + +const workarounds = [ + {'key': '--encoding', 'description': 'Force the specified encoding (experimental)'}, + {'key': '--no-check-certificate', 'description': 'Suppress HTTPS certificate validation'}, + {'key': '--prefer-insecure', 'description': 'Use an unencrypted connection to retrieve information about the video. (Currently supported only for YouTube)'}, + {'key': '--user-agent', 'description': 'Specify a custom user agent'}, + {'key': '--referer', 'description': 'Specify a custom referer, use if the video access is restricted to one domain'}, + {'key': '--add-header', 'description': 'Specify a custom HTTP header and its value, separated by a colon \':\'. You can use this option multiple times'}, + {'key': '--bidi-workaround', 'description': 'Work around terminals that lack bidirectional text support. Requires bidiv or fribidi executable in PATH'}, + {'key': '--sleep-interval', 'description': 'Number of seconds to sleep before each download when used alone or a lower boundof a range for randomized sleep before each download (minimum possible number of seconds to sleep) when used along with --max-sleep-interval'}, + {'key': '--max-sleep-interval', 'description': 'Upper bound of a range for randomized sleep before each download (maximum possible number of seconds to sleep). Must only beused along with --min-sleep-interval'} +] + +const video_format = [ + {'key': '-f', 'alt': '--format', 'description': 'Video format code, see the "FORMAT SELECTION" for all the info'}, + {'key': '--all-formats', 'description': 'Download all available video formats'}, + {'key': '--prefer-free-formats', 'description': 'Prefer free video formats unless a specific one is requested'}, + {'key': '-F', 'alt': '--list-formats', 'description': 'List all available formats of requested videos'}, + {'key': '--youtube-skip-dash-manifest', 'description': 'Do not download the DASH manifests and related data on YouTube videos'}, + {'key': '--merge-output-format', 'description': 'If a merge is required (e.g. bestvideo+bestaudio), output to given container format. One of mkv, mp4, ogg, webm, flv. Ignored if no merge is required'} +]; + +const subtitle = [ + {'key': '--write-sub', 'description': 'Write subtitle file'}, + {'key': '--write-auto-sub', 'description': 'Write automatically generated subtitle file (YouTube only)'}, + {'key': '--all-subs', 'description': 'Download all the available subtitles of the video'}, + {'key': '--list-subs', 'description': 'List all available subtitles for the video'}, + {'key': '--sub-format', 'description': 'Subtitle format, accepts formats preference, for example: "srt" or "ass/srt/best"'}, + {'key': '--sub-lang', 'description': 'Languages of the subtitles to download (optional) separated by commas, use --list-subs'} +]; + +const authentication = [ + {'key': '-u', 'alt': '--username', 'description': 'Login with this account ID'}, + {'key': '-p', 'alt': '--password', 'description': 'Account password. If this option is left out, youtube-dl will ask interactively.'}, + {'key': '-2', 'alt': '--twofactor', 'description': 'Two-factor authentication code'}, + {'key': '-n', 'alt': '--netrc', 'description': 'Use .netrc authentication data'}, + {'key': '--video-password', 'description': 'Video password (vimeo, smotri, youku)'} +]; + +const adobe_pass = [ + {'key': '--ap-mso', 'description': 'Adobe Pass multiple-system operator (TV provider) identifier, use --ap-list-mso'}, + {'key': '--ap-username', 'description': 'Multiple-system operator account login'}, + {'key': '--ap-password', 'description': 'Multiple-system operator account password. If this option is left out, youtube-dl will ask interactively.'}, + {'key': '--ap-list-mso', 'description': 'List all supported multiple-system operators'} +]; + +const post_processing = [ + {'key': '-x', 'alt': '--extract-audio', 'description': 'Convert video files to audio-only files (requires ffmpeg or avconv and ffprobe or avprobe)'}, + {'key': '--audio-format', 'description': 'Specify audio format: "best", "aac", "flac", "mp3", "m4a", "opus", "vorbis", or "wav"; "best" by default; No effect without -x'}, + {'key': '--audio-quality', 'description': 'Specify ffmpeg/avconv audio quality, insert a value between 0 (better) and 9 (worse)for VBR or a specific bitrate like 128K (default 5)'}, + {'key': '--recode-video', 'description': 'Encode the video to another format if necessary (currently supported:mp4|flv|ogg|webm|mkv|avi)'}, + {'key': '--postprocessor-args', 'description': 'Give these arguments to the postprocessor'}, + {'key': '-k', 'alt': '--keep-video', 'description': 'Keep the video file on disk after the post-processing; the video is erased by default'}, + {'key': '--no-post-overwrites', 'description': 'Do not overwrite post-processed files; the post-processed files are overwritten by default'}, + {'key': '--embed-subs', 'description': 'Embed subtitles in the video (only for mp4,webm and mkv videos)'}, + {'key': '--embed-thumbnail', 'description': 'Embed thumbnail in the audio as cover art'}, + {'key': '--add-metadata', 'description': 'Write metadata to the video file'}, + {'key': '--metadata-from-title', 'description': 'Parse additional metadata like song title/artist from the video title. The format syntax is the same as --output'}, + {'key': '--xattrs', 'description': 'Write metadata to the video file\'s xattrs (using dublin core and xdg standards)'}, + {'key': '--fixup', 'description': 'Automatically correct known faults of the file. One of never (do nothing), warn (only emit a warning), detect_or_warn (the default; fix file if we can, warn otherwise)'}, + {'key': '--prefer-avconv', 'description': 'Prefer avconv over ffmpeg for running the postprocessors'}, + {'key': '--prefer-ffmpeg', 'description': 'Prefer ffmpeg over avconv for running the postprocessors (default)'}, + {'key': '--ffmpeg-location', 'description': 'Location of the ffmpeg/avconv binary; either the path to the binary or its containing directory.'}, + {'key': '--exec', 'description': 'Execute a command on the file after downloading, similar to find\'s -exec syntax. Example: --exec'}, + {'key': '--convert-subs', 'description': 'Convert the subtitles to other format (currently supported: srt|ass|vtt|lrc)'} +]; + +export const args_info = { + 'uncategorized' : {'label': 'Main'}, + 'network' : {'label': 'Network'}, + 'geo_restriction': {'label': 'Geo Restriction'}, + 'video_selection': {'label': 'Video Selection'}, + 'download' : {'label': 'Download'}, + 'filesystem' : {'label': 'Filesystem'}, + 'thumbnail' : {'label': 'Thumbnail'}, + 'verbosity' : {'label': 'Verbosity'}, + 'workarounds' : {'label': 'Workarounds'}, + 'video_format' : {'label': 'Video Format'}, + 'subtitle' : {'label': 'Subtitle'}, + 'authentication' : {'label': 'Authentication'}, + 'adobe_pass' : {'label': 'Adobe Pass'}, + 'post_processing': {'label': 'Post Processing'}, +}; + +export const args = { + 'uncategorized' : uncategorized, + 'network' : network, + 'geo_restriction': geo_restriction, + 'video_selection': video_selection, + 'download' : download, + 'filesystem' : filesystem, + 'thumbnail' : thumbnail, + 'verbosity' : verbosity, + 'workarounds' : workarounds, + 'video_format' : video_format, + 'subtitle' : subtitle, + 'authentication' : authentication, + 'adobe_pass' : adobe_pass, + 'post_processing': post_processing +} diff --git a/src/app/main/main.component.css b/src/app/main/main.component.css index 890d4a3..8414c07 100644 --- a/src/app/main/main.component.css +++ b/src/app/main/main.component.css @@ -119,4 +119,9 @@ mat-form-field.mat-form-field { .advanced-input { width: 100%; +} + +.edit-button { + margin-left: 10px; + top: -5px; } \ No newline at end of file diff --git a/src/app/main/main.component.html b/src/app/main/main.component.html index 982a917..aa5bb21 100644 --- a/src/app/main/main.component.html +++ b/src/app/main/main.component.html @@ -111,6 +111,7 @@ Use custom args + diff --git a/src/app/main/main.component.ts b/src/app/main/main.component.ts index 9103fa1..a45717a 100644 --- a/src/app/main/main.component.ts +++ b/src/app/main/main.component.ts @@ -20,6 +20,7 @@ import { Router, ActivatedRoute } from '@angular/router'; import { CreatePlaylistComponent } from 'app/create-playlist/create-playlist.component'; import { Platform } from '@angular/cdk/platform'; import { v4 as uuid } from 'uuid'; +import { ArgModifierDialogComponent } from 'app/dialogs/arg-modifier-dialog/arg-modifier-dialog.component'; export let audioFilesMouseHovering = false; export let videoFilesMouseHovering = false; @@ -42,7 +43,7 @@ export interface Download { styleUrls: ['./main.component.css'] }) export class MainComponent implements OnInit { - youtubeAuthDisabledOverride = true; + youtubeAuthDisabledOverride = false; iOS = false; @@ -1088,4 +1089,18 @@ export class MainComponent implements OnInit { } }); } + + // modify custom args + openArgsModifierDialog() { + const dialogRef = this.dialog.open(ArgModifierDialogComponent, { + data: { + initial_args: this.customArgs + } + }); + dialogRef.afterClosed().subscribe(new_args => { + if (new_args) { + this.customArgs = new_args; + } + }); + } } diff --git a/src/app/settings/settings.component.html b/src/app/settings/settings.component.html index b4f8b3b..b596f08 100644 --- a/src/app/settings/settings.component.html +++ b/src/app/settings/settings.component.html @@ -92,6 +92,7 @@ Global custom args for downloads on the home page. +
@@ -211,6 +212,38 @@
+ + + + + Extensions + + +
+
+
+
Chrome
+

Click here to download the official YoutubeDL-Material Chrome extension manually.

+

You must manually load the extension and modify the extension's settings to set the frontend URL.

+ +
+
+
Firefox
+

Click here to install the official YoutubeDL-Material Firefox extension right off the Firefox extensions page.

+

Detailed setup instructions. Not much is required other than changing the extension's settings to set the frontend URL.

+ +
+
+
Bookmarklet
+

Drag the link below to your bookmarks, and you're good to go! Just navigate to the YouTube video you'd like to download, and click the bookmark.

+ +

YTDL-Bookmarklet

+
+
+
+
+ + diff --git a/src/app/settings/settings.component.scss b/src/app/settings/settings.component.scss index ee91f38..2c6e6cf 100644 --- a/src/app/settings/settings.component.scss +++ b/src/app/settings/settings.component.scss @@ -5,4 +5,8 @@ .locale-select { margin-bottom: 10px; width: 175px; +} + +.ext-divider { + margin-bottom: 14px; } \ No newline at end of file diff --git a/src/app/settings/settings.component.ts b/src/app/settings/settings.component.ts index e582e77..7b9fe2f 100644 --- a/src/app/settings/settings.component.ts +++ b/src/app/settings/settings.component.ts @@ -2,6 +2,9 @@ import { Component, OnInit } from '@angular/core'; import { PostsService } from 'app/posts.services'; import { isoLangs } from './locales_list'; import { MatSnackBar } from '@angular/material/snack-bar'; +import {DomSanitizer} from '@angular/platform-browser'; +import { MatDialog } from '@angular/material/dialog'; +import { ArgModifierDialogComponent } from 'app/dialogs/arg-modifier-dialog/arg-modifier-dialog.component'; @Component({ selector: 'app-settings', @@ -16,11 +19,15 @@ export class SettingsComponent implements OnInit { initial_config = null; new_config = null loading_config = false; + generated_bookmarklet_code = null; - constructor(private postsService: PostsService, private snackBar: MatSnackBar) { } + constructor(private postsService: PostsService, private snackBar: MatSnackBar, private sanitizer: DomSanitizer, + private dialog: MatDialog) { } ngOnInit() { this.getConfig(); + + this.generated_bookmarklet_code = this.sanitizer.bypassSecurityTrustUrl(this.generateBookmarkletCode()); } getConfig() { @@ -56,6 +63,52 @@ export class SettingsComponent implements OnInit { this.openSnackBar('Language successfully changed! Reload to update the page.') } + generateBookmarklet() { + this.bookmarksite('YTDL-Material', this.generated_bookmarklet_code); + } + + generateBookmarkletCode() { + const currentURL = window.location.href.split('#')[0]; + const homePageWithArgsURL = currentURL + '#/home;url='; + const bookmarkletCodeInside = `'${homePageWithArgsURL}' + window.location` + const bookmarkletCode = `javascript:(function()%7Bwindow.open('${homePageWithArgsURL}' + encodeURIComponent(window.location))%7D)()`; + return bookmarkletCode; + } + + // not currently functioning on most platforms. hence not in use + bookmarksite(title, url) { + // Internet Explorer + if (document.all) { + window['external']['AddFavorite'](url, title); + } else if (window['chrome']) { + // Google Chrome + this.openSnackBar('Chrome users must drag the \'Alternate URL\' link to your bookmarks.'); + } else if (window['sidebar']) { + // Firefox + window['sidebar'].addPanel(title, url, ''); + } else if (window['opera'] && window.print) { + // Opera + const elem = document.createElement('a'); + elem.setAttribute('href', url); + elem.setAttribute('title', title); + elem.setAttribute('rel', 'sidebar'); + elem.click(); + } + } + + openArgsModifierDialog() { + const dialogRef = this.dialog.open(ArgModifierDialogComponent, { + data: { + initial_args: this.new_config['Downloader']['custom_args'] + } + }); + dialogRef.afterClosed().subscribe(new_args => { + if (new_args) { + this.new_config['Downloader']['custom_args'] = new_args; + } + }); + } + // snackbar helper public openSnackBar(message: string, action: string = '') { this.snackBar.open(message, action, { diff --git a/src/locale/messages.es.xlf b/src/locale/messages.es.xlf deleted file mode 100644 index 0fbee7f..0000000 --- a/src/locale/messages.es.xlf +++ /dev/null @@ -1,987 +0,0 @@ - - - - - - Create a playlist - - app/create-playlist/create-playlist.component.html - 1 - - Create a playlist dialog title - Crea una lista de reproducción - - - Name - - app/create-playlist/create-playlist.component.html - 5 - - Playlist name placeholder - Nombre - - - Audio files - - app/create-playlist/create-playlist.component.html - 10 - - Audio files title - Archivos de sonido - - - Videos - - app/create-playlist/create-playlist.component.html - 11 - - - app/subscription/subscription/subscription.component.html - 15 - - Videos title - Archivos de video - - - Youtube Downloader - - app/main/main.component.html - 5 - - Youtube downloader home page label - Descargador de Youtube - - - Please enter a valid URL! - - app/main/main.component.html - 16 - - Enter valid URL error - Por favor entre una URL válida - - - Quality - - app/main/main.component.html - 24 - - Quality select label - Calidad - - - Use URL - - app/main/main.component.html - 52 - - YT search Use URL button for searched video - Usa URL - - - View - - app/main/main.component.html - 55 - - YT search View button for searched video - Ver - - - Only Audio - - app/main/main.component.html - 65 - - Only Audio checkbox - Solo audio - - - Multi-download Mode - - app/main/main.component.html - 70 - - Multi-download Mode checkbox - Descarga múltiple - - - Download - - app/main/main.component.html - 79 - - Main download button - Descarga - - - Cancel - - app/main/main.component.html - 84 - - Cancel download button - Cancela - - - Advanced - - app/main/main.component.html - 96 - - Advanced download mode panel - Avanzado - - - Simulated command: - - app/main/main.component.html - 102 - - Simulated command label - Commando simulado: - - - Use custom args - - app/main/main.component.html - 110 - - Use custom args checkbox - Usar argumentos personalizados - - - Custom args - - app/main/main.component.html - 115 - - - app/settings/settings.component.html - 83 - - Custom args placeholder - Argumentos personalizados - - - No need to include URL, just everything after. - - app/main/main.component.html - 117 - - Custom Args input hint - No es necesario incluir URL, solo todo después - - - Use custom output - - app/main/main.component.html - 125 - - Use custom output checkbox - Usar salida personalizada - - - Custom output - - app/main/main.component.html - 130 - - Custom output placeholder - Salida personalizada - - - Documentation - - app/main/main.component.html - 132 - - Youtube-dl output template documentation link - Documentación - - - Path is relative to the config download path. Don't include extension. - - app/main/main.component.html - 133 - - Custom Output input hint - La ruta es relativa a la ruta de descarga de la config. No incluya el extensión. - - - Use authentication - - app/main/main.component.html - 139 - - Use authentication checkbox - Usa autenticación - - - Username - - app/main/main.component.html - 144 - - YT Username placeholder - Nombre de usuario - - - Password - - app/main/main.component.html - 149 - - YT Password placeholder - Contraseña - - - Audio - - app/main/main.component.html - 193 - - Audio files title - Audio - - - Your audio files are here - - app/main/main.component.html - 198 - - Audio files description - Tus archivos de audio están aquí - - - Playlists - - app/main/main.component.html - 213 - - - app/main/main.component.html - 255 - - - app/subscriptions/subscriptions.component.html - 27 - - Playlists title - Listas de reproducción - - - No playlists available. Create one from your downloading audio files by clicking the blue plus button. - - app/main/main.component.html - 224 - - No video playlists available text - No hay listas de reproducción disponibles. Cree uno de tus archivos de audio haciendo clic en el botón azul más. - - - Video - - app/main/main.component.html - 234 - - Video files title - Vídeo - - - Your video files are here - - app/main/main.component.html - 239 - - Video files description - Tus archivos de video son aquí - - - No playlists available. Create one from your downloading video files by clicking the blue plus button. - - app/main/main.component.html - 268 - - No video playlists available text - No hay listas de reproducción disponibles. Cree uno de tus archivos de video haciendo clic en el botón azul más. - - - ID: - - app/file-card/file-card.component.html - 6 - - - app/download-item/download-item.component.html - 7 - - - app/dialogs/subscription-info-dialog/subscription-info-dialog.component.html - 13 - - File or playlist ID - ID: - - - Count: - - app/file-card/file-card.component.html - 7 - - Playlist video count - Cuenta: - - - Settings - - app/settings/settings.component.html - 1 - - - app/app.component.html - 22 - - Settings title - Configuraciones - - - Host - - app/settings/settings.component.html - 8 - - Host settings title - Host - - - URL - - app/settings/settings.component.html - 15 - - - app/dialogs/subscribe-dialog/subscribe-dialog.component.html - 8 - - URL input placeholder - URL - - - URL this app will be accessed from, without the port. - - app/settings/settings.component.html - 16 - - URL setting input hint - URL desde la que se accederá a esta aplicación, sin el puerto. - - - Port - - app/settings/settings.component.html - 21 - - Port input placeholder - Puerto - - - The desired port. Default is 17442. - - app/settings/settings.component.html - 22 - - Port setting input hint - Puerto deseado. El valor predeterminado es 17442. - - - Encryption - - app/settings/settings.component.html - 34 - - Encryption settings title - Cifrado - - - Use encryption - - app/settings/settings.component.html - 40 - - Use encryption setting - Usa cifrado - - - Cert file path - - app/settings/settings.component.html - 45 - - Cert file path input placeholder - Ruta del archivo de certificado - - - Key file path - - app/settings/settings.component.html - 51 - - Key file path input placeholder - Ruta de archivo de clave - - - Downloader - - app/settings/settings.component.html - 62 - - Downloader settings title - Descargador - - - Audio folder path - - app/settings/settings.component.html - 69 - - Audio folder path input placeholder - Ruta de la carpeta de audio - - - Path for audio only downloads. It is relative to YTDL-Material's root folder. - - app/settings/settings.component.html - 70 - - Aduio path setting input hint - Ruta para descargas de solo audio. Es relativo a la carpeta raíz de YTDL-Material. - - - Video folder path - - app/settings/settings.component.html - 76 - - Video folder path input placeholder - Ruta de la carpeta de video - - - Path for video downloads. It is relative to YTDL-Material's root folder. - - app/settings/settings.component.html - 77 - - Video path setting input hint - Ruta de descarga de videos. Es relativo a la carpeta raíz de YTDL-Material. - - - Global custom args for downloads on the home page. - - app/settings/settings.component.html - 84 - - Custom args setting input hint - Argumentos personalizados globales para descargas en la página de inicio. - - - Extra - - app/settings/settings.component.html - 95 - - Extra settings title - Extra - - - Top title - - app/settings/settings.component.html - 102 - - Top title input placeholder - Título superior - - - File manager enabled - - app/settings/settings.component.html - 107 - - File manager enabled setting - Administrador de archivos habilitado - - - Allow quality select - - app/settings/settings.component.html - 110 - - Allow quality seelct setting - Permitir selección de calidad - - - Download only mode - - app/settings/settings.component.html - 113 - - Download only mode setting - Modo de solo descarga - - - Allow multi-download mode - - app/settings/settings.component.html - 116 - - Allow multi-downloade mode setting - Permitir el modo de descarga múltiple - - - API - - app/settings/settings.component.html - 126 - - API settings title - API - - - Use YouTube API - - app/settings/settings.component.html - 132 - - Use YouTube API setting - Utilizar la API de YouTube - - - Youtube API Key - - app/settings/settings.component.html - 136 - - Youtube API Key setting placeholder - Clave API de YouTube - - - Generating a key is easy! - - app/settings/settings.component.html - 137 - - Youtube API Key setting hint - ¡Generar una clave es fácil! - - - Themes - - app/settings/settings.component.html - 148 - - Themes settings title - Temas - - - Default - - app/settings/settings.component.html - 155 - - Default theme label - Defecto - - - Dark - - app/settings/settings.component.html - 156 - - - app/app.component.html - 17 - - Dark theme label - Oscura - - - Allow theme change - - app/settings/settings.component.html - 161 - - Allow theme change setting - Permitir cambio de tema - - - Subscriptions - - app/settings/settings.component.html - 171 - - - app/app.component.html - 34 - - Subscriptions settings title - Suscripciones - - - Allow subscriptions - - app/settings/settings.component.html - 177 - - Allow subscriptions setting - Permitir suscripciones - - - Subscriptions base path - - app/settings/settings.component.html - 181 - - Subscriptions base path input setting placeholder - Ruta base de suscripciones - - - Base path for videos from your subscribed channels and playlists. It is relative to YTDL-Material's root folder. - - app/settings/settings.component.html - 182 - - Subscriptions base path setting input hint - Ruta base para videos de sus canales y listas de reproducción suscritos. Es relativo a la carpeta raíz de YTDL-Material. - - - Check interval - - app/settings/settings.component.html - 187 - - Check interval input setting placeholder - Intervalo de comprobación - - - Unit is seconds, only include numbers. - - app/settings/settings.component.html - 188 - - Check interval setting input hint - La unidad es segundos, solo incluye números. - - - Use youtube-dl archive - - app/settings/settings.component.html - 192 - - Use youtube-dl archive setting - Usa el archivo de youtube-dl - - - With youtube-dl's archive - - app/settings/settings.component.html - 193 - - youtube-dl archive explanation prefix link - Con la función de archivo de youtube-dl, - - - feature, downloaded videos from your subscriptions get recorded in a text file in the subscriptions archive sub-directory. - - app/settings/settings.component.html - 193 - - youtube-dl archive explanation middle - los videos descargados de sus suscripciones se graban en un archivo de texto en el subdirectorio del archivo de suscripciones. - - - This enables the ability to permanently delete videos from your subscriptions without unsubscribing, and allows you to record which videos you downloaded in case of data loss. - - app/settings/settings.component.html - 194 - - youtube-dl archive explanation suffix - Esto permite eliminar videos de sus suscripciones de forma permanente sin darse de baja y le permite grabar los videos que descargó en caso de pérdida de datos. - - - Advanced - - app/settings/settings.component.html - 204 - - Advanced settings title - Avanzado - - - Use default downloading agent - - app/settings/settings.component.html - 210 - - Use default downloading agent setting - Usar agente de descarga predeterminado - - - Custom agent - - app/settings/settings.component.html - 214 - - Custom agent setting placeholder - Agente personalizado - - - Allow advanced download - - app/settings/settings.component.html - 219 - - Allow advanced downloading setting - Permitir descarga avanzada - - - Save - - app/settings/settings.component.html - 229 - - Settings save button - Salvar - - - Cancel - - app/settings/settings.component.html - 232 - - - app/dialogs/subscribe-dialog/subscribe-dialog.component.html - 37 - - Settings cancel button - Cancelar - - - Home - - app/app.component.html - 33 - - Navigation menu Home Page title - Inicio - - - Save changes - - app/player/player.component.html - 22 - - Playlist save changes button - Guardar cambios - - - Subscribe to playlist or channel - - app/dialogs/subscribe-dialog/subscribe-dialog.component.html - 1 - - Subscribe dialog title - Suscríbase a la lista de reproducción o al canal - - - The playlist or channel URL - - app/dialogs/subscribe-dialog/subscribe-dialog.component.html - 9 - - Subscription URL input hint - La lista de reproducción o la URL del canal - - - Custom name - - app/dialogs/subscribe-dialog/subscribe-dialog.component.html - 14 - - Subscription custom name placeholder - Nombre personalizado - - - This is optional - - app/dialogs/subscribe-dialog/subscribe-dialog.component.html - 15 - - Custom name input hint - Esto es opcional - - - Download all uploads - - app/dialogs/subscribe-dialog/subscribe-dialog.component.html - 19 - - Download all uploads subscription setting - Descargar todas las cargas - - - Download videos uploaded in the last - - app/dialogs/subscribe-dialog/subscribe-dialog.component.html - 22 - - Download time range prefix - Descargar videos subidos en el último - - - Type: - - app/dialogs/subscription-info-dialog/subscription-info-dialog.component.html - 5 - - Subscription type property - Tipo: - - - URL: - - app/dialogs/subscription-info-dialog/subscription-info-dialog.component.html - 9 - - Subscription URL property - URL: - - - Archive: - - app/dialogs/subscription-info-dialog/subscription-info-dialog.component.html - 17 - - Subscription ID property - Archivo: - - - Close - - app/dialogs/subscription-info-dialog/subscription-info-dialog.component.html - 23 - - Close subscription info button - Cerca - - - Export Archive - - app/dialogs/subscription-info-dialog/subscription-info-dialog.component.html - 24 - - Export Archive button - Exportar el archivo - - - Unsubscribe - - app/dialogs/subscription-info-dialog/subscription-info-dialog.component.html - 26 - - Unsubscribe button - Darse de baja - - - Your subscriptions - - app/subscriptions/subscriptions.component.html - 3 - - Subscriptions title - Sus suscripciones - - - Channels - - app/subscriptions/subscriptions.component.html - 8 - - Subscriptions channels title - Canales - - - Name not available. Channel retrieval in progress. - - app/subscriptions/subscriptions.component.html - 14 - - Subscription playlist not available text - Nombre no disponible. Recuperación de canales en progreso. - - - You have no channel subscriptions. - - app/subscriptions/subscriptions.component.html - 24 - - No channel subscriptions text - No tienes suscripciones de canal. - - - Name not available. Playlist retrieval in progress. - - app/subscriptions/subscriptions.component.html - 33 - - Subscription playlist not available text - Nombre no disponible. Recuperación de listas de reproducción en progreso. - - - You have no playlist subscriptions. - - app/subscriptions/subscriptions.component.html - 43 - - No playlist subscriptions text - No tienes suscripciones a listas de reproducción. - - - Search - - app/subscription/subscription/subscription.component.html - 19 - - Subscription videos search placeholder - Buscar - - - Length: - - app/subscription/subscription-file-card/subscription-file-card.component.html - 3 - - Video duration label - Duración: - - - Delete and redownload - - app/subscription/subscription-file-card/subscription-file-card.component.html - 7 - - Delete and redownload subscription video button - Eliminar y volver a descargar - - - Delete forever - - app/subscription/subscription-file-card/subscription-file-card.component.html - 8 - - Delete forever subscription video button - Borrar para siempre - - - - \ No newline at end of file diff --git a/src/locale/messages.xlf b/src/locale/messages.xlf deleted file mode 100644 index 21f8758..0000000 --- a/src/locale/messages.xlf +++ /dev/null @@ -1,1003 +0,0 @@ - - - - - - Create a playlist - - app/create-playlist/create-playlist.component.html - 1 - - Create a playlist dialog title - - - Name - - app/create-playlist/create-playlist.component.html - 5 - - Playlist name placeholder - - - Audio files - - app/create-playlist/create-playlist.component.html - 10 - - Audio files title - - - Videos - - app/create-playlist/create-playlist.component.html - 11 - - - app/subscription/subscription/subscription.component.html - 15 - - Videos title - - - Youtube Downloader - - app/main/main.component.html - 5 - - Youtube downloader home page label - - - Please enter a valid URL! - - app/main/main.component.html - 16 - - Enter valid URL error - - - - Quality - - - app/main/main.component.html - 24 - - Quality select label - - - Use URL - - app/main/main.component.html - 52 - - YT search Use URL button for searched video - - - - View - - - app/main/main.component.html - 55 - - YT search View button for searched video - - - - Only Audio - - - app/main/main.component.html - 65 - - Only Audio checkbox - - - - Multi-download Mode - - - app/main/main.component.html - 70 - - Multi-download Mode checkbox - - - - Download - - - app/main/main.component.html - 79 - - Main download button - - - - Cancel - - - app/main/main.component.html - 84 - - Cancel download button - - - - Advanced - - - app/main/main.component.html - 96 - - Advanced download mode panel - - - - Simulated command: - - - app/main/main.component.html - 102 - - Simulated command label - - - - Use custom args - - - app/main/main.component.html - 110 - - Use custom args checkbox - - - Custom args - - app/main/main.component.html - 115 - - - app/settings/settings.component.html - 92 - - Custom args placeholder - - - - No need to include URL, just everything after. - - - app/main/main.component.html - 117 - - Custom Args input hint - - - - Use custom output - - - app/main/main.component.html - 125 - - Use custom output checkbox - - - Custom output - - app/main/main.component.html - 130 - - Custom output placeholder - - - Documentation - - app/main/main.component.html - 132 - - Youtube-dl output template documentation link - - - Path is relative to the config download path. Don't include extension. - - app/main/main.component.html - 133 - - Custom Output input hint - - - - Use authentication - - - app/main/main.component.html - 139 - - Use authentication checkbox - - - Username - - app/main/main.component.html - 144 - - YT Username placeholder - - - Password - - app/main/main.component.html - 149 - - YT Password placeholder - - - - Audio - - - app/main/main.component.html - 193 - - Audio files title - - - - Your audio files are here - - - app/main/main.component.html - 198 - - Audio files description - - - Playlists - - app/main/main.component.html - 213 - - - app/main/main.component.html - 255 - - - app/subscriptions/subscriptions.component.html - 27 - - Playlists title - - - - No playlists available. Create one from your downloading audio files by clicking the blue plus button. - - - app/main/main.component.html - 224 - - No video playlists available text - - - - Video - - - app/main/main.component.html - 234 - - Video files title - - - - Your video files are here - - - app/main/main.component.html - 239 - - Video files description - - - - No playlists available. Create one from your downloading video files by clicking the blue plus button. - - - app/main/main.component.html - 268 - - No video playlists available text - - - ID: - - app/file-card/file-card.component.html - 6 - - - app/download-item/download-item.component.html - 7 - - - app/dialogs/subscription-info-dialog/subscription-info-dialog.component.html - 13 - - File or playlist ID - - - Count: - - app/file-card/file-card.component.html - 7 - - Playlist video count - - - Delete - - app/file-card/file-card.component.html - 21 - - Delete video button - - - Delete and blacklist - - app/file-card/file-card.component.html - 22 - - Delete and blacklist video button - - - Settings - - app/settings/settings.component.html - 1 - - - app/app.component.html - 22 - - Settings title - - - Host - - app/settings/settings.component.html - 17 - - Host settings title - - - URL - - app/settings/settings.component.html - 24 - - - app/dialogs/subscribe-dialog/subscribe-dialog.component.html - 8 - - URL input placeholder - - - URL this app will be accessed from, without the port. - - app/settings/settings.component.html - 25 - - URL setting input hint - - - Port - - app/settings/settings.component.html - 30 - - Port input placeholder - - - The desired port. Default is 17442. - - app/settings/settings.component.html - 31 - - Port setting input hint - - - Encryption - - app/settings/settings.component.html - 43 - - Encryption settings title - - - Use encryption - - app/settings/settings.component.html - 49 - - Use encryption setting - - - Cert file path - - app/settings/settings.component.html - 54 - - Cert file path input placeholder - - - Key file path - - app/settings/settings.component.html - 60 - - Key file path input placeholder - - - Downloader - - app/settings/settings.component.html - 71 - - Downloader settings title - - - Audio folder path - - app/settings/settings.component.html - 78 - - Audio folder path input placeholder - - - Path for audio only downloads. It is relative to YTDL-Material's root folder. - - app/settings/settings.component.html - 79 - - Aduio path setting input hint - - - Video folder path - - app/settings/settings.component.html - 85 - - Video folder path input placeholder - - - Path for video downloads. It is relative to YTDL-Material's root folder. - - app/settings/settings.component.html - 86 - - Video path setting input hint - - - Global custom args for downloads on the home page. - - app/settings/settings.component.html - 93 - - Custom args setting input hint - - - Use youtube-dl archive - - app/settings/settings.component.html - 98 - - - app/settings/settings.component.html - 206 - - Use youtubedl archive setting - - - Extra - - app/settings/settings.component.html - 109 - - Extra settings title - - - Top title - - app/settings/settings.component.html - 116 - - Top title input placeholder - - - File manager enabled - - app/settings/settings.component.html - 121 - - File manager enabled setting - - - Allow quality select - - app/settings/settings.component.html - 124 - - Allow quality seelct setting - - - Download only mode - - app/settings/settings.component.html - 127 - - Download only mode setting - - - Allow multi-download mode - - app/settings/settings.component.html - 130 - - Allow multi-downloade mode setting - - - API - - app/settings/settings.component.html - 140 - - API settings title - - - Use YouTube API - - app/settings/settings.component.html - 146 - - Use YouTube API setting - - - Youtube API Key - - app/settings/settings.component.html - 150 - - Youtube API Key setting placeholder - - - Generating a key is easy! - - app/settings/settings.component.html - 151 - - Youtube API Key setting hint - - - Themes - - app/settings/settings.component.html - 162 - - Themes settings title - - - Default - - app/settings/settings.component.html - 169 - - Default theme label - - - Dark - - app/settings/settings.component.html - 170 - - - app/app.component.html - 17 - - Dark theme label - - - Allow theme change - - app/settings/settings.component.html - 175 - - Allow theme change setting - - - Subscriptions - - app/settings/settings.component.html - 185 - - - app/app.component.html - 38 - - Subscriptions settings title - - - Allow subscriptions - - app/settings/settings.component.html - 191 - - Allow subscriptions setting - - - Subscriptions base path - - app/settings/settings.component.html - 195 - - Subscriptions base path input setting placeholder - - - Base path for videos from your subscribed channels and playlists. It is relative to YTDL-Material's root folder. - - app/settings/settings.component.html - 196 - - Subscriptions base path setting input hint - - - Check interval - - app/settings/settings.component.html - 201 - - Check interval input setting placeholder - - - Unit is seconds, only include numbers. - - app/settings/settings.component.html - 202 - - Check interval setting input hint - - - With youtube-dl's archive - - app/settings/settings.component.html - 207 - - youtube-dl archive explanation prefix link - - - feature, downloaded videos from your subscriptions get recorded in a text file in the subscriptions archive sub-directory. - - app/settings/settings.component.html - 207 - - youtube-dl archive explanation middle - - - This enables the ability to permanently delete videos from your subscriptions without unsubscribing, and allows you to record which videos you downloaded in case of data loss. - - app/settings/settings.component.html - 208 - - youtube-dl archive explanation suffix - - - Advanced - - app/settings/settings.component.html - 218 - - Advanced settings title - - - Use default downloading agent - - app/settings/settings.component.html - 224 - - Use default downloading agent setting - - - Allow advanced download - - app/settings/settings.component.html - 239 - - Allow advanced downloading setting - - - Save - - app/settings/settings.component.html - 249 - - Settings save button - - - Cancel - - app/settings/settings.component.html - 252 - - - app/dialogs/subscribe-dialog/subscribe-dialog.component.html - 37 - - Settings cancel button - - - About YoutubeDL-Material - - app/dialogs/about-dialog/about-dialog.component.html - 1 - - About dialog title - - - is an open-source YouTube downloader built under Google's Material Design specifications. You can seamlessly download your favorite videos as video or audio files, and even subscribe to your favorite channels and playlists to keep updated with their new videos. - - app/dialogs/about-dialog/about-dialog.component.html - 6 - - About first paragraph - - - has some awesome features included! An extensive API, Docker support, and localization (translation) support. Read up on all the supported features by clicking on the GitHub icon below. - - app/dialogs/about-dialog/about-dialog.component.html - 9 - - About second paragraph - - - Found a bug or have a suggestion? - - app/dialogs/about-dialog/about-dialog.component.html - 12 - - About bug prefix - - - Click here - - app/dialogs/about-dialog/about-dialog.component.html - 12 - - About bug click here - - - to create an issue! - - app/dialogs/about-dialog/about-dialog.component.html - 12 - - About bug suffix - - - Installed version: - - app/dialogs/about-dialog/about-dialog.component.html - 17 - - Version label - - - View latest update - - app/dialogs/about-dialog/about-dialog.component.html - 17 - - View latest update - - - About - - app/app.component.html - 26 - - About menu label - - - Home - - app/app.component.html - 37 - - Navigation menu Home Page title - - - Save changes - - app/player/player.component.html - 22 - - Playlist save changes button - - - Subscribe to playlist or channel - - app/dialogs/subscribe-dialog/subscribe-dialog.component.html - 1 - - Subscribe dialog title - - - The playlist or channel URL - - app/dialogs/subscribe-dialog/subscribe-dialog.component.html - 9 - - Subscription URL input hint - - - Custom name - - app/dialogs/subscribe-dialog/subscribe-dialog.component.html - 14 - - Subscription custom name placeholder - - - This is optional - - app/dialogs/subscribe-dialog/subscribe-dialog.component.html - 15 - - Custom name input hint - - - Download all uploads - - app/dialogs/subscribe-dialog/subscribe-dialog.component.html - 19 - - Download all uploads subscription setting - - - Download videos uploaded in the last - - app/dialogs/subscribe-dialog/subscribe-dialog.component.html - 22 - - Download time range prefix - - - Type: - - app/dialogs/subscription-info-dialog/subscription-info-dialog.component.html - 5 - - Subscription type property - - - URL: - - app/dialogs/subscription-info-dialog/subscription-info-dialog.component.html - 9 - - Subscription URL property - - - Archive: - - app/dialogs/subscription-info-dialog/subscription-info-dialog.component.html - 17 - - Subscription ID property - - - Close - - app/dialogs/subscription-info-dialog/subscription-info-dialog.component.html - 23 - - Close subscription info button - - - Export Archive - - app/dialogs/subscription-info-dialog/subscription-info-dialog.component.html - 24 - - Export Archive button - - - Unsubscribe - - app/dialogs/subscription-info-dialog/subscription-info-dialog.component.html - 26 - - Unsubscribe button - - - Your subscriptions - - app/subscriptions/subscriptions.component.html - 3 - - Subscriptions title - - - Channels - - app/subscriptions/subscriptions.component.html - 8 - - Subscriptions channels title - - - Name not available. Channel retrieval in progress. - - app/subscriptions/subscriptions.component.html - 14 - - Subscription playlist not available text - - - You have no channel subscriptions. - - app/subscriptions/subscriptions.component.html - 24 - - No channel subscriptions text - - - Name not available. Playlist retrieval in progress. - - app/subscriptions/subscriptions.component.html - 33 - - Subscription playlist not available text - - - You have no playlist subscriptions. - - app/subscriptions/subscriptions.component.html - 43 - - No playlist subscriptions text - - - Search - - app/subscription/subscription/subscription.component.html - 19 - - Subscription videos search placeholder - - - Length: - - app/subscription/subscription-file-card/subscription-file-card.component.html - 3 - - Video duration label - - - Delete and redownload - - app/subscription/subscription-file-card/subscription-file-card.component.html - 7 - - Delete and redownload subscription video button - - - Delete forever - - app/subscription/subscription-file-card/subscription-file-card.component.html - 8 - - Delete forever subscription video button - - - -