ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
132.76k stars 10.07k forks source link

--sleep-interval not working without video download #4924

Open ponyo opened 9 years ago

ponyo commented 9 years ago

For example, downloading just the subs from a playlist.

This is the type of situation where sleeping is actually useful because downloading a video takes time anyway.

misakitchi commented 8 years ago

I agree! Can you do something about it? and option --download-archive is not working too when i only take subs on crunchyroll

yan12125 commented 8 years ago

Currently --sleep-interval is implemented in downloaders, while subtitles are downloaded directly (not via downloaders) in YoutubeDL class. Likewise, --sleep-interval does not work with --skip-download either. I guess most sites blocking users based on how often they issue requests, not how often they download video files, so it's better to put codes for --sleep-interval in YoutubeDL.process_info.

yan12125 commented 8 years ago

@misakitchi

and option --download-archive is not working too when i only take subs on crunchyroll

From the description of --download-archive:

    --download-archive FILE          Download only videos not listed in the
                                     archive file. Record the IDs of all
                                     downloaded videos in it.

It's designed for downloaded videos.

misakitchi commented 8 years ago

I only DL subs (FR/French) from crunchyroll. Because i already have video on Nyaa torrent I don't understand all you say because my english is poor... But can you do something to activate option --sleep-interval and option --retries when i DL subs from playlist? Thoses both options are not working when i DL only subs Because i have many errors "HTTP Error 502 Bad Gateway" Example of playlist: http://www.crunchyroll.com/izetta-the-last-witch

Or is there an option to DL just the begining of the video? So Options --sleep-interval and --retries will work. And after end of batch i will delete video

Thanks for help! :)

yan12125 commented 8 years ago

Or is there an option to DL just the begining of the video?

Try --test

misakitchi commented 8 years ago

THANKS!! ^_^ Option --test is working! And now --sleep-interval is working too and i have no more "HTTP Error 502 Bad Gateway"!! :) Will option --retries work with --test? It will be good that you add --test option in youtube-dl manual (i didn't see it) :)

I have another question: the sub filename is xxxx.frFR.ass i want only xxx.fr.ass is it possible?

yan12125 commented 8 years ago

Will option --retries work with --test?

How about try it?

It will be good that you add --test option in youtube-dl manual (i didn't see it) :)

Well, the option is not designed for such a case. It's a beautiful coincidence :)

i want only xxx.fr.ass is it possible?

Currently no. The tag frFR is provided by Crunchyroll

misakitchi commented 8 years ago

And i don't know if its a bug, but for option --download-archive FILE it DL all media info and subtitles and after this it say "Oh i already have this video!!"... :( its not better to verify first "i already have this video" and not DL media info and subtitles?

yan12125 commented 8 years ago

Download archives are checked against video ID. In several sites, video ID are unknown until metadata fetched. For subtitles...you can call it a bug

misakitchi commented 8 years ago

OK but for crunchyroll you have video ID at first, before metadata So can you do something to not fetch all metadata? :)

yan12125 commented 8 years ago

It's possible but not implemented yet. Could you open a new issue for that?

jhondbv commented 4 years ago

any solution for this bug ?