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
131.61k stars 9.97k forks source link

[puhutv] Download a whole series #25125

Open marium0505 opened 4 years ago

marium0505 commented 4 years ago

Checklist

Description

I had originally a pretty long request , but my browser refreshed for some reason so lost all of it (why no autosave feature 😭). Here we go again...

It would be nice if we could download whole series on puhutv similar to how we can download entire playlists on YouTube.

I have currently used a workaround where I extract all the episode links in the series, and then put them in a batch file which I use to download using the --batch-file parameter. This method works, but would be great if we could just use the show link.

Çilek Kokusu (Link)

youtube-dl.exe --verbose -f "(bestvideo+bestaudio/best)[protocol^=m3u8_native]" https://puhutv.com/cilek-kokusu-detay

PS: I use -f "(bestvideo+bestaudio/best)[protocol^=m3u8_native]" as the default protocol doesn't work on puhutv (see #25124 ).

[debug] System config: []
[debug] User config: ['--console-title', '--no-mtime']
[debug] Custom config: []
[debug] Command-line args: ['--verbose', '-f', '(bestvideo+bestaudio/best)[protocol^=m3u8_native]', 'https://puhutv.com/cilek-kokusu-detay']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2020.05.03
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.19613
[debug] exe versions: ffmpeg N-90908-g0807a77160
[debug] Proxy map: {}
[puhutv:serie] cilek-kokusu: Downloading JSON metadata
[puhutv] cilek-kokusu-detay: Downloading JSON metadata
ERROR: An extractor error has occurred. (caused by KeyError('id',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpybwhja3m\build\youtube_dl\extractor\common.py", line 530, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpybwhja3m\build\youtube_dl\extractor\puhutv.py", line 66, in _real_extract
KeyError: 'id'
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpybwhja3m\build\youtube_dl\extractor\common.py", line 530, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpybwhja3m\build\youtube_dl\extractor\puhutv.py", line 66, in _real_extract
KeyError: 'id'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpybwhja3m\build\youtube_dl\YoutubeDL.py", line 797, in extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpybwhja3m\build\youtube_dl\extractor\common.py", line 543, in extract
youtube_dl.utils.ExtractorError: An extractor error has occurred. (caused by KeyError('id',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

Çarpışma (Link)

youtube-dl.exe --verbose -f "(bestvideo+bestaudio/best)[protocol^=m3u8_native]" https://puhutv.com/carpisma-detay

PS: I use -f "(bestvideo+bestaudio/best)[protocol^=m3u8_native]" as the default protocol doesn't work on puhutv (see #25124 ).

C:\bin>youtube-dl.exe --verbose -f "(bestvideo+bestaudio/best)[protocol^=m3u8_native]" https://puhutv.com/carpisma-detay
[debug] System config: []
[debug] User config: ['--console-title', '--no-mtime']
[debug] Custom config: []
[debug] Command-line args: ['--verbose', '-f', '(bestvideo+bestaudio/best)[protocol^=m3u8_native]', 'https://puhutv.com/carpisma-detay']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2020.05.03
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.19613
[debug] exe versions: ffmpeg N-90908-g0807a77160
[debug] Proxy map: {}
[puhutv:serie] carpisma: Downloading JSON metadata
[puhutv] carpisma-detay: Downloading JSON metadata
ERROR: An extractor error has occurred. (caused by KeyError('id',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpybwhja3m\build\youtube_dl\extractor\common.py", line 530, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpybwhja3m\build\youtube_dl\extractor\puhutv.py", line 66, in _real_extract
KeyError: 'id'
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpybwhja3m\build\youtube_dl\extractor\common.py", line 530, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpybwhja3m\build\youtube_dl\extractor\puhutv.py", line 66, in _real_extract
KeyError: 'id'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpybwhja3m\build\youtube_dl\YoutubeDL.py", line 797, in extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmpybwhja3m\build\youtube_dl\extractor\common.py", line 543, in extract
youtube_dl.utils.ExtractorError: An extractor error has occurred. (caused by KeyError('id',)); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
ahmedtds commented 4 years ago

I think this is already supported but just doesn't work anymore

class PuhuTVSerieIE(InfoExtractor):
    _VALID_URL = r'https?://(?:www\.)?puhutv\.com/(?P<id>[^/?#&]+)-detay'

I remember downloading a whole series with just one link some time ago. Tried now but didn't work.

marium0505 commented 4 years ago

I think this is already supported but just doesn't work anymore

class PuhuTVSerieIE(InfoExtractor):
    _VALID_URL = r'https?://(?:www\.)?puhutv\.com/(?P<id>[^/?#&]+)-detay'

I remember downloading a whole series with just one link some time ago. Tried now but didn't work.

It is possible that puhutv has done a lot of modifications recently, as the download of single videos has also been broken. I made a ticket about it #25124 and it was just solved in https://github.com/ytdl-org/youtube-dl/commit/f7f304910d1c1fc19313231d424daba304e1de71.