任务单 #26540

Use video-id instead of thread-id

开放日期: 2011-10-15 00:07 最后更新: 2012-04-01 04:08

报告人:
属主:
(无)
状态:
开启
组件:
(无)
里程碑:
(无)
优先:
5 - Medium
严重性:
5 - Medium
处理结果:
文件:

Details

The output file should be named after video-id, even if the given URL indicates thread-id.

Example

Running "nicovideo-dl http://www.nicovideo.jp/watch/1318601747" should produce a file named "sm14227000.mp4" instead of "1318601747.mp4". Another example is http://www.nicovideo.jp/watch/1317899356 of which the filename should be "so15809985.mp4".

Background

A video can belong to multiple threads (roughly speaking, thread = video + comments). Since this software downloads only a video without comments, the downloaded file should be identified by video-id (e.g. "sm14227000") rather than the thread-id (e.g. "1318601747").

Note

The video_url_real includes the numerical part of video-id but does not include the prefix ("sm", "nm", "so", etc.). The author of this ticket have no good idea how to get the video-id with prefix (may need to scrape the HTML?). Sorry. ;-D

References

Description of relationship between video-id and thread-id. http://d.hatena.ne.jp/kotas/20070926/watchurl

任务单历史 (2/2 Histories)

2011-10-15 00:07 Updated by: mobitan
  • New Ticket "Use video-id instead of thread-id" created
2012-04-01 04:08 Updated by: paulliu
评论

I'm looking into this problem. Seems that here ( http://d.hatena.ne.jp/nolze/20100717/1279367450 ) is the information to do that.

Attachment File List

No attachments

编辑

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » 登录名