Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
[Cartoon network] Playlist support request #13578
Comments
|
@keybounce cartoonnetwork comes under https://github.com/rg3/youtube-dl/blob/master/README.md#can-you-add-support-for-this-anime-video-site-or-site-which-shows-current-movies-for-free .They use dmca,so though it can supported it will be copyright infringement with Turner Sports and Entertainment Digital Network as mentioned here http://www.cartoonnetworkindia.com/trademark (cn india),your may be slightly different geographically. |
|
CartoonNetwork is the official site for the network. It is not a license breaking "for free" place. I can download individual episodes no problem. |
|
If you can download the videos using youtube-dl then I can partially help you. I can provide you the embed python script,this is just an extension of the normal embed code in youtube-dl.Playlist request needs lots of work. |
|
Sadly, even after looking over that github, I cannot really figure out how to use it. Other than as an example of calling youtube-dl from another program. |
|
ok instead save all the videos you need in text format,then run youtube-dl as "youtube-dl -a [text_file_name]" |
okay you cant figure it out is fine.Its just mere a python program to embed youtube-dl as provided here https://github.com/rg3/youtube-dl#embedding-youtube-dl. Just expanding its capacity to meet my needs. |
Yes, but that is what I have to do, and why I'm asking for playlist support. To help whoever does decide to do playlist support: The episode pages have usually one, sometimes two, giant json blocks. The key you are looking for is "seoFriendly". What I used last night for partial automation is this: cat showUrls | while read url ; do curl -s $url | grep seoFri >> episodes; done (showUrls is a list of URLs like http://www.cartoonnetwork.com/video/justice-league-action/episodes/index.html) split -l 1 episodes vim x?? Then, the following commands. NB: I don't know how to use 'sed' to insert a newline, or I'd have this whole thing in a shell script.
This gives me one playlist file per show, which I then shove into a per-show directory, and run youtube-dl on. |
|
@keybounce playlist support is an lengthy process as the extractor needs to be updated as well a crawler need to be added which itself becomes an extensive process. What I provided was just a quick alternative solution to your problem.You can still repurpose the script as per your liking.If problem is relating my script put a issue there for everything else put here.
|
can you point out what you were not being able to figure out there and how else to reach you other than this issue #13578. So that I can prepare it likewise. |
|
How to reach me: keybounce@gmail.com ... I went back over this thread, to find your link to your github, and it's now gone :-) I have read the official "how to embed youtube-dl in another python program", and it makes enough sense. I just don't know python (never programmed in it, but general reading of code is general reading of code) ... and that sed statement ... if I'm reading it correctly (not sure that I am), it says:
Still, reading the sed page for the ... I've lost track of how many times, I see this now (in the s command):
... so a <newline> would normally be interpreted by bash as "just combine these lines", and now I have to figure out how to tell bash to leave the newline in and combine... fun. |
|
@keybounce https://github.com/siddht4/youtube_dl_embed/ is the link,anyways as you read the official embed documents too you have got the idea.
Reading this topic again made me realize we have diverged too much,so if you succed do the necessary regex and pull request. |
|
Ahh. No, I need to insert a (many) newline -- I need to take one super long line, and break it up into multiple short lines. That was what I did not know how to do in sed before, but it looks like the answer is to substitute a \n in the middle. Of course, the docs explaining that are split into four different locations in my sed man page (sed functions: " To embed a newline in the text, precede it with a backslash. ". Sed regular expressions: " You cannot, however, use a literal newline character in an address or in the substitute command." The "s" command: "A line can be split by substituting a newline character into it. To specify a newline character in the replacement string, precede it with a backslash." And the "y" command: "a backslash followed by an ``n'' is replaced by a newline character."). |
|
So here is my working cartoon network playlist extraction.
|
|
okay the script looks okay to me,may need some changes , cheers |
Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like that [x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2017.07.02. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
This is a request for series playlist support.
Url's of the form
http://www.cartoonnetwork.com/video/teen-titans-go/episodes/index.html
http://www.cartoonnetwork.com/video/teen-titans-go/episodes/season-4.html
http://www.cartoonnetwork.com/video/ben-10/episodes/season-1.html
http://www.cartoonnetwork.com/video/ben-10/index.html
(Yep, that one has 4 episodes not on the current season page, go figure, and the numbers indicate that they missed a lot :-)
http://www.cartoonnetwork.com/video/nexo-knights/episodes/index.html
http://www.cartoonnetwork.com/video/nexo-knights/episodes/season-3.html (NB: I didn't even know that there was a 3rd season)
Etc.