Coder Social home page Coder Social logo

tasuren / niconico-dl Goto Github PK

View Code? Open in Web Editor NEW
14.0 2.0 3.0 94 KB

ニコニコ動画の動画のダウンロードをするためのPython用モジュール。

Home Page: https://tasuren.github.io/niconico-dl/

License: MIT License

Python 99.39% Shell 0.61%
python async niconico-video-downloader niconico

niconico-dl's People

Contributors

akomekagome avatar hide0123 avatar tasuren avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

niconico-dl's Issues

提案: Type Hintsの追加

初めまして。y-chanといいます。
ニコニコ動画の仕様変更に対応したダウンローダーを探していたところ、こちらにたどり着き、コードを読み、参考にさせていただいています。

さて、本題ですが、PythonにはType Hintsという仕組みがあります。
Type Hintsを使えば動的型付けのPythonでありながら、それなりに型安全なコード(もちろん完全とは言えませんが)を書くことが出来、IDEなどでの補完も充実するようになります。
また、可読性も向上します。
以下は例です

def x_plus_y(x: int, y: int) -> int:
    return x + y

私の方でType Hintsを実装し、PRしようかと思っていますが、必要がなければIssueはcloseします。

heartbeatが動いていない

初めまして、Akomeと申します!
個人でニコニコ動画を流せるdiscord音楽botを開発していて、そこでこのライブリを使わせていただいたのですが、heartbeatに関して気になるところがいくつかあったのでissue立てさせていただきました!

heartbeatが動いていない

niconico_dl_asyncの方なのですが、コードを追ってみてもheartbeatが動いていると思えませんでした。
実際、get_download_link()で取得したurlも一定時間後に403エラーが帰ってくる状況でした。

heartbeatで一部よくわからない処理がある。

https://github.com/tasuren/niconico_dl/blob/84b8d1e0bbdb353876485c713aa03b33b10370e1/niconico_dl_async/__init__.py#L142-L173
こちらの部分なのですが、151から162行目以外の処理の意味がわかりませんでした。
自分のこちらのForkで僭越ながらいじらせていただいたのですが、151~162行目の処理だけで問題なく動いているようでした。自分が気づけていない意図がありましたら申し訳ないです。

提案:mylist取得機能の追加

あと、この機能があると素晴らしく使いやすいな...と単純におもったので...
提案させていただきました...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.