Skip to content

Commit 5a77c2d

Browse files
committed
Renamed the --file-channels option to --local-channels (also aliased as: -lc).
1 parent 3871c33 commit 5a77c2d

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

bin/youtube-viewer

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ $action_options
375375
:pv=i :popular=i : display author's popular uploads
376376
:A(ctivity)=i : display author's recent activity
377377
:p(laylists)=i : display author's playlists
378-
:s=i :save=i : save author's channel ID to file (see -fc)
378+
:s=i :save=i : save author's channel ID to file (see -lc)
379379
:ps=i :s2p=i,i : save videos to a post-selected playlist
380380
:subscribe=i : subscribe to author's channel
381381
:(dis)like=i : like or dislike a video
@@ -732,7 +732,7 @@ usage: $execname [options] ([url] | [keywords])
732732
--position=i : position in the playlist where to add the video
733733
--save-playlist=s : save a playlist locally given a filename
734734
playlist ID must be specified with `--pid`
735-
-lp --local-playlist=s : display videos from a local playlist
735+
-lp --local-playlist:s : display videos from a local playlist
736736
737737
* Activities
738738
-ua --activities:s : show activity events for a given channel
@@ -743,7 +743,7 @@ usage: $execname [options] ([url] | [keywords])
743743
744744
* Channels
745745
-sc --channels : search for YouTube channels
746-
-fc --file-channels : show saved channels from file
746+
-lc --local-channels : show saved channels from file
747747
748748
* Comments
749749
--comments=s : display comments for a video by ID or URL
@@ -1363,12 +1363,12 @@ sub apply_configuration {
13631363
print_categories($yv_obj->video_categories);
13641364
}
13651365

1366-
if (delete $opt->{channels_from_file}) {
1367-
print_channels_from_file();
1366+
if (delete $opt->{local_channels}) {
1367+
print_local_channels();
13681368
}
13691369

1370-
if (delete $opt->{watched_videos_from_file}) {
1371-
print_watched_videos_from_file();
1370+
if (delete $opt->{watched_videos}) {
1371+
print_watched_videos();
13721372
}
13731373

13741374
if (defined $opt->{uploads}) {
@@ -1601,10 +1601,10 @@ sub parse_arguments {
16011601
'c|categories' => \$opt{categories},
16021602
'video-ids|videoids|id|ids=s' => \$opt{play_video_ids},
16031603

1604-
'fc|cf|file-channels' => \$opt{channels_from_file},
1605-
'wv|watched-videos' => \$opt{watched_videos_from_file},
1606-
'lp|local-playlist:s' => \$opt{local_playlist},
1607-
'save-playlist=s' => \$opt{save_playlist},
1604+
'lc|fc|local-channels' => \$opt{local_channels},
1605+
'lp|local-playlists:s' => \$opt{local_playlist},
1606+
'wv|watched-videos' => \$opt{watched_videos},
1607+
'save-playlist=s' => \$opt{save_playlist},
16081608

16091609
'search-videos|search|sv!' => \$opt{search_videos},
16101610
'search-channels|channels|sc!' => \$opt{search_channels},
@@ -2986,7 +2986,7 @@ sub print_local_playlist {
29862986
return 0;
29872987
}
29882988

2989-
sub print_watched_videos_from_file {
2989+
sub print_watched_videos {
29902990

29912991
my @ids;
29922992

@@ -3001,7 +3001,7 @@ sub print_watched_videos_from_file {
30013001
print_videos(get_results_from_list(\@ids));
30023002
}
30033003

3004-
sub print_channels_from_file {
3004+
sub print_local_channels {
30053005

30063006
open(my $fh, '<:utf8', $opt{youtube_users_file}) or do {
30073007
warn "Can't open file <<$opt{youtube_users_file}>> for reading: $!\n";

0 commit comments

Comments
 (0)