Fóruns: 設定や使い方のQ&A (Thread #35909)

動画をダウンロードできなくなった? (2014-08-26 22:52 by いんきゅばす愛用者1 #74236)

いんきゅばす 2.2.2 (NicoBrowser 0.12.1)
題名のとおりですが、私の環境(XP Pro)で 2014/8/25 頃から動画をダウンロードできなくなっています。
ニコニコ動画の方で、(普通のユーザにはどうでもいいような)アップデートが実施されたのでしょうか。
アプリの動作ですが、
IDを登録すると、ログインには成功するように見えます(が、不確かです)。
その後、リストに登録した動画の「状態」列に java.lang.NullPointerException と表示されてダウンロードが始まりません。

Responder a #74236×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

Re: 動画をダウンロードできなくなった? (2014-08-31 10:38 by いんきゅばす愛用者1 #74260)

inqubus.log のテキストを貼っておきます。

====================================
work error [2014-08-31 10:10:46,975]
java.lang.IllegalArgumentException: java.lang.NullPointerException
at nicobrowser.VideoInfo.<init>(VideoInfo.java:53) ~[NicoBrowser.jar:na]
at nicobrowser.NicoHttpClient.getVideoInfo(NicoHttpClient.java:625) ~[NicoBrowser.jar:na]
at saccubus.worker.impl.download.Download.work(Download.java:78) ~[Saccubus.jar:na]
at saccubus.worker.impl.download.Download.work(Download.java:37) ~[Saccubus.jar:na]
at saccubus.worker.Worker.call(Worker.java:32) ~[Saccubus.jar:na]
at java.util.concurrent.FutureTask.run(Unknown Source) [na:1.7.0_67]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.7.0_67]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.7.0_67]
at java.lang.Thread.run(Unknown Source) [na:1.7.0_67]
Caused by: java.lang.NullPointerException: null
at java.net.URLDecoder.decode(Unknown Source) ~[na:1.7.0_67]
at nicobrowser.VideoInfo.<init>(VideoInfo.java:47) ~[NicoBrowser.jar:na]
... 8 common frames omitted
====================================
Responder a #74236

Responder a #74260×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

Re: 動画をダウンロードできなくなった? (2014-09-02 19:09 by いんきゅばす愛用者1 #74293)

マップが丸ごと空っぽではないらしい。
キー "url"、"ms" では取れるが、"link" では取れない(今回取れなくなった)らしい。

さて、どう調べてどう改修したらいいのでしょうか。
愛用者なので自分も勉強がてら協力したいところです。

================ VideoInfo.java (・・・にコメントを書き込み。) ===============
1 /* $Id$ */
2 package yukihane.jnicoapi;
3
4 import java.net.URL;
5 import java.net.URLDecoder;
6 import java.util.Map;
7
8 /**
9 *
10 * @author yuki
11 */
12 public class VideoInfo {
13
14 public static final String KEY_THREAD_ID = "thread_id";
15 private static final String KEY_VIDEO_LENGTH = "l";
16 private static final String KEY_URL = "url";
17 private static final String KEY_SMILE_LINK = "link";
18 private static final String KEY_MESSAGE_URL = "ms";
19 public static final String KEY_USER_ID = "user_id";
20 public static final String KEY_OPTIONAL_THREAD_ID = "optional_thread_id";
21 /** (リダイレクトが必要な動画の場合、リダイレクトした後の)動画ID */
22 private final String realVideoId;
23 /** watchページから取得した動画タイトル. **/
24 private final String titleInWatchPage;
25 private final String threadId;
26 private final URL videoUrl;
27 private final URL messageUrl;
28 private final URL smileUrl;
29 private final String userId;
30 private final int videoLength;
31 private final String optionalThreadId;
32 private final Map<String, String> keyMap;
33
34 /**
35 *
36 * @param realVideoId
37 * @param getflvReceivedMap
38 * @param keyMap 公式動画投稿者コメント取得用パラメータ.
39 */
40 public VideoInfo(String realVideoId, String title, Map<String, String> getflvReceivedMap, Map<String, String> keyMap) {
41 try {
42 this.realVideoId = realVideoId;
43 this.titleInWatchPage = title;
44 threadId = getflvReceivedMap.get(KEY_THREAD_ID);
45 videoUrl = new URL(URLDecoder.decode(getflvReceivedMap.get(KEY_URL), "UTF-8"));
46 messageUrl = new URL(URLDecoder.decode(getflvReceivedMap.get(KEY_MESSAGE_URL), "UTF-8"));
47 smileUrl = new URL(URLDecoder.decode(getflvReceivedMap.get(KEY_SMILE_LINK), "UTF-8")); // ★★★★★ ←ココ ★★★★★★
48 userId = getflvReceivedMap.get(KEY_USER_ID);
49 videoLength = Integer.parseInt(getflvReceivedMap.get(KEY_VIDEO_LENGTH));
50 optionalThreadId = getflvReceivedMap.get(KEY_OPTIONAL_THREAD_ID);
51 this.keyMap = keyMap;
52 } catch (Exception e) {
53 throw new IllegalArgumentException(e);
54 }
55 }
56
57 public String getRealVideoId() {
58 return realVideoId;
59 }
60
61 public String getTitleInWatchPage() {
62 return titleInWatchPage;
63 }
64
65 public URL getMessageUrl() {
66 return messageUrl;
67 }
68
69 public URL getSmileUrl() {
70 return smileUrl;
71 }
72
73 public String getThreadId() {
74 return threadId;
75 }
76
77 public String getUserId() {
78 return userId;
79 }
80
81 /** @return 再生時間(秒) */
82 public int getVideoLength() {
83 return videoLength;
84 }
85
86 public URL getVideoUrl() {
87 return videoUrl;
88 }
89
90 public String getOptionalThreadId() {
91 return optionalThreadId;
92 }
93
94 public Map<String, String> getKeyMap() {
95 return keyMap;
96 }
97
98 /**
99 * 実際のres_fromに設定するにはこの値に-1をかける必要があります.
100 * @return 動画の長さに応じたコメント表示数.
101 */
102 public int getResFrom() {
103 if (videoLength < 60) {
104 return 100;
105 } else if (videoLength < 300) {
106 return 250;
107 } else if (videoLength < 600) {
108 return 500;
109 }
110 return 1000;
111 }
112 }
===============================
Responder a #74260

Responder a #74293×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

Re: 動画をダウンロードできなくなった? (2014-09-13 07:38 by orz- #74376)

[メッセージ #74293 への返信]
いんきゅばす2.2.2用パッチつくって作業部屋にうpしました。
http://sourceforge.jp/downloads/users/7/7205/inqubus2.2.2%E7%94%A8%E3%83%91%E3%83%83%E3%83%81.zip
お試しください
レポジトリへは登録してません
Responder a #74293

Responder a #74376×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

Re: 動画をダウンロードできなくなった? (2014-09-13 22:31 by いんきゅばす愛用者1 #74387)

パッチありがとうございます!
機能的には修正されたと私も思います。
ただし下記。

 ・あるニコニコ動画のIDを登録したところ、リストの「状態」列に ログイン中 と表示されて、5分程度何の動きも見られず(※A)。
 ・気がついたら、動画ダウンロードのゲージ進行の表示になっている。その後、動画ファイルが得られた。コメントファイルも得られた。
    ※A;しかし実際にはこのとき、
     ・動画ファイルは作成開始されていない
     ・先にコメントはダウンロード完了してコメントファイルが作成完了していたはず。

この待ち時間?は今までに見たことのない挙動です。
(推定ですが、(コメントではなく)動画の方のダウンロードに関わるものでしょう)
可能なら無くした方がみんな喜ぶと思うのですが、どなたか何かお分かりですか。
Responder a #74376

Responder a #74387×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

Re: 動画をダウンロードできなくなった? (2014-09-15 00:45 by いんきゅばす愛用者1 #74392)

inqubus2.2.2用パッチ2.zip で待ち時間がなくなりました。
ありがとうございます。
Responder a #74376

Responder a #74392×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

Re: 動画をダウンロードできなくなった? (2014-09-15 05:33 by orz- #74393)

[メッセージ #74392 への返信]
ご確認ありがとうございます。パッチ2は
・VideoInfo.javaの smileUrl =を"http://www.nicovideo.jp/"に変更
という内容です。もはやsmileUrlは使用しない(根拠はないのですが)と思い
ダミーアドレスとして入れてみました。(http://localhost/はこちらのテストでNGでした)
他の環境でも動作してよかった。URLは
http://sourceforge.jp/downloads/users/7/7211/inqubus2.2.2%E7%94%A8%E3%83%91%E3%83%83%E3%83%812.zip
です。

Responder a #74392

Responder a #74393×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

Re: 動画をダウンロードできなくなった? (2014-09-20 16:03 by orz- #74429)

[メッセージ #74393 への返信]
いんきゅばす愛用者1さん 申し訳ありません。
謝辞でお名前を間違えていました。
説明文(配布2.txt)だけ修正して上げ直し 
https://sourceforge.jp/downloads/users/7/7240/inqubus2.2.2%E7%94%A8%E3%83%91%E3%83%83%E3%83%812.zip
以前のバージョンも残してありますがファイル名を変更したので前のURLでは
DL出来ないです。多分
Responder a #74393

Responder a #74429×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

Re: 動画をダウンロードできなくなった? (2014-09-21 19:23 by いんきゅばす愛用者1 #74433)

受け取りました。

いまのところ、この問題は解決して、別の問題も見当たりません。
Responder a #74429

Responder a #74433×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

Re: 動画をダウンロードできなくなった? (2014-08-31 23:02 by nicobrowser愛用者1 #74267)

同じ coroid project の nicobrowser を使用させてもらってますが、
こちらもエラーが出て使用できなくなっています。
ちなみにエラー内容を貼っておきます。
java.lang.IllegalArgumentException: java.lang.NullPointerException
at nicobrowser.VideoInfo.<init>(VideoInfo.java:53) ~[NicoBrowser.jar:na]
at nicobrowser.NicoHttpClient.getVideoInfo(NicoHttpClient.java:625) ~[NicoBrowser.jar:na]
at nicobrowser.main.Main.start(Main.java:206) [NicoBrowser.jar:na]
at nicobrowser.main.Main.main(Main.java:84) [NicoBrowser.jar:na]
Caused by: java.lang.NullPointerException: null
at java.net.URLDecoder.decode(Unknown Source) ~[na:1.7.0_67]
at nicobrowser.VideoInfo.<init>(VideoInfo.java:47) ~[NicoBrowser.jar:na]
... 3 common frames omitted
Responder a #74236

Responder a #74267×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

Re: 動画をダウンロードできなくなった? (2014-09-24 19:16 by orz- #74444)

[メッセージ #74267 への返信]
いんきゅばす2.2.2用パッチ.zip(最初の分)の中のNicobrowser.jarの中のMETA-INFを 
nicobrowser0.12.1のNicobrwoser.jarのMETA-INFに差し替えたjarを使うと
起動して動画を保存できました。
(META-INFが違うのはライブラリーフォルダの深さが違うため)
但しいんきゅばすの時と同じログイン後の待ちが入るようです。
が、パッチ2ではダメでした。simeUrlを使って動画情報(再生時間?)を見てるようです。
nicobrowserで待ちが入らなくするのは未だ出来ていません。

Responder a #74267

Responder a #74444×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

Re: 動画をダウンロードできなくなった? (2014-09-26 16:23 by orz- #74459)

[メッセージ #74444 への返信]
他の環境でも動くようなので報告します。
NicoBrowser0.12.1用パッチ3
https://sourceforge.jp/downloads/users/7/7254/Nicobrowser0.12.1%E7%94%A8%E3%83%91%E3%83%83%E3%83%81.zip
Java7以上が必要なのでJava6を使ってる方はJava7最新版に更新して下さい。

また、こちらの環境ではいんきゅばす2.2.2用としても使えることを確認しました。
パッチ2で問題なければ変更する必要はありません。
Responder a #74444

Responder a #74459×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login