0x776b7364 / toggle.sg-download

Python script to automate Toggle.sg video downloads
MIT License
26 stars 18 forks source link

CDN to kaltura? #53

Open NGPriest opened 6 years ago

NGPriest commented 6 years ago
C:\Users\User\Desktop\toggle.sg-download-master>download_toggle_video2.py https://video.toggle.sg/en/series/the-little-nyonya/ep1/304996

+++++++++++++++++++++++++++++++++++++
Toggle video and episodes downloader
+++++++++++++++++++++++++++++++++++++

+++++++++++++++++++++++++++++++++++++
[*] Processing input 1 of 1 ...
+++++++++++++++++++++++++++++++++++++
[I] Toggle video https://video.toggle.sg/en/series/the-little-nyonya/ep1/304996 detected
[I] Obtained media name = The_Little_Nyonya_____-_Episode_1
[I] Auto-selected URL: http://cdnapi.kaltura.com/p/2082311/sp/208231100/playManifest/protocol/http/entryId/0_mhn7b3k2/format/applehttp/tags/mobile_sd/f/a.m3u8
[I] Found English subtitles! Adding https://cc-toggle.akamaized.net/304996_MC_SD_THE_LITTLE_NYONYA_EP1_English.srt to queue list ...
[I] Starting download of queued URLs ...
[I] Thread 62736ae8: processing URL http://cdnapi.kaltura.com/p/2082311/sp/208231100/playManifest/protocol/http/entryId/0_mhn7b3k2/format/applehttp/tags/mobile_sd/f/a.m3u8
[I] Thread 1269a976: processing URL https://cc-toggle.akamaized.net/304996_MC_SD_THE_LITTLE_NYONYA_EP1_English.srt
[http @ 00000213e8a5bd40] HTTP error 404 Not Found
http://cdnapi.kaltura.com/p/2082311/sp/208231100/playManifest/protocol/http/entryId/0_mhn7b3k2/format/applehttp/tags/mobile_sd/f/a.m3u8: Server returned 404 Not Found
[E] ffmpeg file not found, or existing file is for incorrect architecture, or download was interrupted prematurely.
[I] Thread 62736ae8 completed
Downloading: 304996_MC_SD_THE_LITTLE_NYONYA_EP1_English.srt Bytes: 25955
Thread          Downloaded      Percentage
-------------------------------
[I] Thread 1269a976 completed
[I] +++ Script execution complete! +++
0x776b7364 commented 6 years ago

It seems like the auto-selected URL did not work for you. Try running as such (Linux instructions follow):

$ python2 download_toggle_video2.py --no-autodl https://video.toggle.sg/en/series/the-little-nyonya/ep1/304996
<snip>
[6]: The_Little_Nyonya_____-_Episode_1_web_sd
<snip>
Enter selection (delimit multiple selections with space, 0 to select all): 6