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

Support for un.hungama.com #7754

Closed
11 tasks done
apstheironheart opened this issue Aug 2, 2023 · 2 comments · Fixed by #7757
Closed
11 tasks done

Support for un.hungama.com #7754

apstheironheart opened this issue Aug 2, 2023 · 2 comments · Fixed by #7757
Assignees
Labels
good first issue Good for new devs site-bug Issue with a specific website

Comments

@apstheironheart
Copy link

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

  • I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

Region

No response

Example URLs

Charts/Playlist: https://un.hungama.com/chart/bollywood-top-40/6532/
Album: https://un.hungama.com/album/what-jhumka-%3F-from-rocky-aur-rani-kii-prem-kahaani/103891805/
Song: https://un.hungama.com/song/tum-kya-mile-from-rocky-aur-rani-kii-prem-kahaani/103553672/
Artist: https://un.hungama.com/artist/justin-bieber/42221/

Provide a description that is worded well enough to be understood

The original hungama.com website is revamped and its moved to un.hungama.com

Provide verbose output that clearly demonstrates the problem

  • Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
  • If using API, add 'verbose': True to YoutubeDL params instead
  • Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output

[debug] Command-line config: ['-vU', 'cookies-un-hungama-com.txt', '-F', 'https://un.hungama.com/song/tum-kya-mile-from-rocky-aur-rani-kii-prem-kahaani/103553672']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2023.07.06 [b532a3481] (pip)
[debug] Python 3.10.12 (CPython x86_64 64bit) - Linux-5.19.0-32-generic-x86_64-with-glibc2.35 (OpenSSL 3.0.2 15 Mar 2022, glibc 2.35)
[debug] exe versions: ffmpeg 4.4.2 (setts), ffprobe 4.4.2
[debug] Optional libraries: Cryptodome-3.18.0, brotli-1.0.9, certifi-2020.06.20, mutagen-1.46.0, secretstorage-3.3.1, sqlite3-2.6.0, websockets-11.0.3
[debug] Proxy map: {}
[debug] Loaded 1855 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Available version: stable@2023.07.06, Current version: stable@2023.07.06
yt-dlp is up to date (stable@2023.07.06)
[generic] Extracting URL: cookies-un-hungama-com.txt
ERROR: [generic] None: 'cookies-un-hungama-com.txt' is not a valid URL. Set --default-search "ytsearch" (or run  yt-dlp "ytsearch:cookies-un-hungama-com.txt" ) to search YouTube
  File "/usr/local/lib/python3.10/dist-packages/yt_dlp/extractor/common.py", line 710, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/lib/python3.10/dist-packages/yt_dlp/extractor/generic.py", line 2403, in _real_extract
    raise ExtractorError(

[generic] Extracting URL: https://un.hungama.com/song/tum-kya-mile-from-rocky-aur-rani-kii-prem-kahaani/103553672
[generic] 103553672: Downloading webpage
WARNING: [generic] Falling back on generic information extractor
[generic] 103553672: Extracting information
[debug] Looking for embeds
ERROR: Unsupported URL: https://un.hungama.com/song/tum-kya-mile-from-rocky-aur-rani-kii-prem-kahaani/103553672
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/yt_dlp/YoutubeDL.py", line 1560, in wrapper
    return func(self, *args, **kwargs)
  File "/usr/local/lib/python3.10/dist-packages/yt_dlp/YoutubeDL.py", line 1688, in __extract_info
    ie_result = ie.extract(url)
  File "/usr/local/lib/python3.10/dist-packages/yt_dlp/extractor/common.py", line 710, in extract
    ie_result = self._real_extract(url)
  File "/usr/local/lib/python3.10/dist-packages/yt_dlp/extractor/generic.py", line 2568, in _real_extract
    raise UnsupportedError(url)
yt_dlp.utils.UnsupportedError: Unsupported URL: https://un.hungama.com/song/tum-kya-mile-from-rocky-aur-rani-kii-prem-kahaani/103553672
@apstheironheart apstheironheart added site-request Request to support a new website triage Untriaged issue labels Aug 2, 2023
@bashonly bashonly added site-bug Issue with a specific website and removed site-request Request to support a new website triage Untriaged issue labels Aug 2, 2023
@bashonly
Copy link
Member

bashonly commented Aug 2, 2023

Looks like the extractor's _VALID_URL just needs to be updated to include the new subdomain

Workaround in the meantime is to change the URL from un. to www.

@bashonly bashonly added the good first issue Good for new devs label Aug 2, 2023
@Yalab7
Copy link
Contributor

Yalab7 commented Aug 2, 2023

Can you assign me this issue?

bashonly pushed a commit that referenced this issue Aug 29, 2023
Closes #7754
Authored by: Yalab7, bashonly
aalsuwaidi pushed a commit to aalsuwaidi/yt-dlp that referenced this issue Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for new devs site-bug Issue with a specific website
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants