anekos / Ank-Pixiv-Tool

An extension which supports one-click downloads of illustrations from Pixiv. It's able to choose automatically appropriate file names. It also supports full screen view of large illustrations on medium-sized screens.
135 stars 70 forks source link

火狐57版本,旧的附加组件将不能使用 #134

Closed xiaoxianxuan closed 6 years ago

xiaoxianxuan commented 7 years ago

请问新的附件组件何时开发完成?是否兼容以前的历史纪录?

ginzu commented 6 years ago

webextension版を試してみてください。 webextension version

履歴は旧版からJSONファイルにexportして、webextension版の設定からimportすることができます。 script for dump

rehdv commented 6 years ago

JSONへのエクスポートを行おうとしたのですが下記のエラーが発生してしまいました。 解決方法などわかりますでしょうか?

File "dump_ankpixiv_sqlite.py", line 37 except Exception, e: ^ SyntaxError: invalid syntax

ginzu commented 6 years ago

python2で書いてpython3で試してないのでそこかもしれません。 ちょっと2と3の差をググってみたところ、

except Exception, e:

except Exception as e:

と書き直すと動くみたいです(未確認)

rehdv commented 6 years ago

ありがとうございます。

Exception as e: print (e)

にすることでPython3でもエラーの回避ができました。

しかし今度は下記のエラーが発生するようになってしまいました。 フォルダのアクセス権などは確認してありますが、他に考えられる原因はありますでしょうか。 Python等は未経験なので初歩的な間違いがあるかもしれませんがよろしくお願いします

C:\ankpixiv>python dump_ankpixiv_sqlite.py -i 'C:\ankpixiv\ankpixiv.sqlite' -o ankpixiv.json unable to open database file Traceback (most recent call last): File "dump_ankpixiv_sqlite.py", line 25, in main conn = sqlite3.connect(opts.src, isolation_level='DEFERRED') sqlite3.OperationalError: unable to open database file

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "dump_ankpixiv_sqlite.py", line 39, in main if conn: UnboundLocalError: local variable 'conn' referenced before assignment

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "dump_ankpixiv_sqlite.py", line 50, in main() File "dump_ankpixiv_sqlite.py", line 42, in main if conn: UnboundLocalError: local variable 'conn' referenced before assignment

ginzu commented 6 years ago

dump script を python3用にコンバートしました。動作は確認済みです。 04a0b0f8178cedde2ebae992980aade75d895683

unable to open database fileというのはこちらでは発生しませんでした。

rehdv commented 6 years ago

対応ありがとうございます。 エラーはパスの受け渡しが上手く行っていなかったのが原因だったようでコード内に直接記述したところ無事エクスポートできました。

重ねての質問になってしまうのですが、 OSの入れ替え時等に履歴を引き継ぎたい場合はどのファイルをコピーすれば良いのでしょうか。

ginzu commented 6 years ago

設定画面にあるエクスポートボタンの機能が実装されるまでお待ちください。

rehdv commented 6 years ago

承知しました。実装を待たせていただきます

ginzu commented 6 years ago

ダウンロード履歴のエクスポート機能、削除機能を実装しました。 https://github.com/anekos/Ank-Pixiv-Tool/commit/3071f4031f962a6fbadecbbc76f87371e406bacb

ginzu commented 6 years ago

ここでこのissueはcloseさせて頂きます。 以降のwebextension版に関する質問・要望は新規にissueを立ててくださいm( )m