Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to display Playlists on Channel? #181

Closed
mrkapqa opened this issue Jan 4, 2018 · 9 comments
Closed

How to display Playlists on Channel? #181

mrkapqa opened this issue Jan 4, 2018 · 9 comments

Comments

@mrkapqa
Copy link

mrkapqa commented Jan 4, 2018

Hello ,

i would like to display the playlists of a a channel in the terminal in order to select one to play . How could i achieve this?

i start with

youtube-viewer

--channel sirius-eng.net

1

but then it shows the videos in select order , but i would like to get to the "playlists"

Thank you very much.

@mrkapqa mrkapqa closed this as completed Jan 4, 2018
@mrkapqa
Copy link
Author

mrkapqa commented Jan 4, 2018

ok, found out:

:p1

@mrkapqa
Copy link
Author

mrkapqa commented Jan 4, 2018

another question:

how can i force the playlist to open as maximized windows?

Thank you very much.

@mrkapqa
Copy link
Author

mrkapqa commented Jan 4, 2018

sometimes, however it would say:

--channel emian miro
Option channel requires an argument
[!] Error in command-line arguments!

@mrkapqa mrkapqa reopened this Jan 4, 2018
@trizen
Copy link
Owner

trizen commented Jan 4, 2018

Hi,

When searching for channels, the argument you are looking for is --channels (plural), followed by the search keywords.

youtube-viewer --channels "emian miro"

The argument --channel (singular) is used for listing the latest videos from a channel ID:

youtube-viewer --channel 'UC9g1-0gt2HxI10jdI7yEhkA'

Let me know if this answers your question.

@mrkapqa
Copy link
Author

mrkapqa commented Jan 4, 2018

thank you,
the error was on my side as i wrote --channel instead of --channels,
yes, i did answer the question. happy new year!

@mrkapqa mrkapqa closed this as completed Jan 4, 2018
@mrkapqa
Copy link
Author

mrkapqa commented Jan 12, 2018

i have another question ,

how could i download eg.

1-13 -d

but with middle quality instead of best?

thanks

@trizen
Copy link
Owner

trizen commented Jan 12, 2018

Try the following command:

:d=1-13 --res=480p

@mrkapqa
Copy link
Author

mrkapqa commented Jan 13, 2018

thank you,

i forgot that i need mp4 format for playing back on ipod touch 1st gen (up to 640p)

so i did your hack

However, there is an hack around this, involving youtube-dl:

add in the configuration file the following entry in the video_players section:

mp4dl => {
arg => "-f mp4 URL",
cmd => "youtube-dl",
},

then execute youtube-viewer with the following argument: --player=mp4dl

Example:

$ youtube-viewer --player=mp4dl linux videos

Now, each selected video, instead of being played, will be downloaded in MP4 format with youtube-dl.

is there a possibility to select here the resolution of mp4 ?

@trizen
Copy link
Owner

trizen commented Jan 13, 2018

Check out the man page of youtube-dl, which lists the following examples:

# Download best mp4 format available or any other best if no mp4 available
$ youtube-dl -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best'

# Download best format available but not better that 480p
$ youtube-dl -f 'bestvideo[height<=480]+bestaudio/best[height<=480]'

Using the second example, we can add the following entry in the video_players section:

mp4dl640      => {
                  arg => "-f 'mp4[height<=640]+bestaudio/best' *URL*",
                  cmd => "youtube-dl",
                },

then execute:

youtube-viewer --player=mp4dl640

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants