question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

vlive have change url format

See original GitHub issue

Checklist

  • I’m reporting a broken site support issue
  • I’ve verified that I’m running youtube-dlc version 2020.10.26
  • I’ve checked that all provided URLs are alive and playable in a browser
  • I’ve checked that all URLs and arguments with special characters are properly quoted or escaped
  • I’ve searched the bugtracker for similar bug reports including closed ones
  • I’ve read bugs section in FAQ

Verbose log

$ youtube-dlc https://www.vlive.tv/post/0-19646784 -s -v
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['https://www.vlive.tv/post/0-19646784', '-s', '-v']
[debug] Loading archive file None
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] youtube-dlc version 2020.10.26
[debug] Python version 3.8.6 (CPython) - Windows-10-10.0.19041-SP0
[debug] exe versions: ffmpeg N-99793-gae9a1a9698, ffprobe N-99793-gae9a1a9698
[debug] Proxy map: {}
[generic] 0-19646784: Requesting header
WARNING: Falling back on generic information extractor.
[generic] 0-19646784: Downloading webpage
[generic] 0-19646784: Extracting information
ERROR: Unsupported URL: https://www.vlive.tv/post/0-19646784
Traceback (most recent call last):
  File "youtube_dlc\YoutubeDL.py", line 830, in extract_info
  File "youtube_dlc\extractor\common.py", line 532, in extract
  File "youtube_dlc\extractor\generic.py", line 3382, in _real_extract
youtube_dlc.utils.UnsupportedError: Unsupported URL: https://www.vlive.tv/post/0-19646784

Description

Vlive now change their URL format (the old format is http://www.vlive.tv/video/0000000 or https://channels.vlive.tv/xxxx/video) New format:

Single video: https://www.vlive.tv/post/1-19369327 Channel: https://www.vlive.tv/channel/FE619/board/3498

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
robindzcommented, Oct 31, 2020

The videoId can still be found in the json metadata that is loaded when requesting the site, it’s now called vodId. The same goes for videoSeq, this is also present in the json metadata.

They then get the key through this endpoint: https://www.vlive.tv/globalv-web/vam-web/video/v1.0/vod/<VIDEOSEQ>/inkey, when requesting the key, there must be a Referer header along with the request, I suggest using https://www.vlive.tv/. This will return some json with the key present.

You can then use the same old endpoint to get all the other metadata: https://apis.naver.com/rmcnmv/rmcnmv/vod/play/v2.0/<VIDEOID>?key=<KEY>&videoId=<VIDEOID>

An example for https://www.vlive.tv/post/1-19577011

Download the webpage. Extract videoSeq & vodId: 219989 & 1B4719DCEC0D305AD8F6021DC9E8493B2099 Request the key @ https://www.vlive.tv/globalv-web/vam-web/video/v1.0/vod/219989/inkey (make sure to use Referer: “https://www.vlive/tv/” otherwise you’ll get a Bad Request response). The response looks like this:

{
    "inkey": "V1277a3e3cd2414e53a79bb9ead3d6b3a7a4a64e426894cfc0616548e63f2353bc66fbb9ead3d6b3a7a4a",
    "adParams": {
        "adChannelId": 6,
        "adCpId": 3,
        "videoAdEnabled": true
    }
}

Use the previously achieved vodId & just received inkey to make a request to the metadata endpoint: https://apis.naver.com/rmcnmv/rmcnmv/vod/play/v2.0/1B4719DCEC0D305AD8F6021DC9E8493B2099?key=V1277a3e3cd2414e53a79bb9ead3d6b3a7a4a64e426894cfc0616548e63f2353bc66fbb9ead3d6b3a7a4a&videoId=1B4719DCEC0D305AD8F6021DC9E8493B2099

^ This will expire after some time so if you read this late you just have to repeat the steps above to get the metadata and see for yourself.

1reaction
SeonjaeHyeoncommented, Oct 31, 2020

So it seems that Vlive also modified the information the website supplies to watch the video.

Right. They completely revised the site, so the way to get some video parameters (like inkey) is changed. We should modify those codes.

Read more comments on GitHub >

github_iconTop Results From Across the Web

VLive website : r/kpopthoughts - Reddit
but I'm astonished at the way that VLive has formatted their video URLs. They're in the form of... https://www.vlive.tv/video/#.
Read more >
5 Ways to Download Vlive Videos (Sub, CH+, Vlive+ Included)
Here are several solutions you can download Vlive videos and enjoy them when you ... Step 4Convert Vlive Videos to a More Compatible...
Read more >
e u n i on Twitter: "VLive Name please change your username ...
Once your account is ready, you can share your VLive Account to 1 more person. To double check if it worked, go to...
Read more >
[Upgrade] How to change/ edit VLog Vlive nick name - YouTube
Hello Everyone! I, Topic Whisperer, make videos relating to Common Sense For Making Money Online and topics for Life. I show you how...
Read more >
V Live is done at the end of 2022, leaving some content likely ...
V Live is done at the end of 2022, leaving some content likely gone forever & making fandom archiving more important than ever....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found