GithubHelp home page GithubHelp logo

lad1337 / adba Goto Github PK

View Code? Open in Web Editor NEW
16.0 16.0 11.0 760 KB

A simple and abstract interface for anidb. Getting the file->episode relation is a breeze. This is based on libpyanidb by alexer!

Python 100.00%

adba's People

Contributors

lad1337 avatar

Stargazers

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

Watchers

 avatar  avatar

adba's Issues

Question

Hi

I want to continue your work, but I don't know where you get updated anime-list.xml (I know that animetitles.xml is provided by anidb.net)

Thanks =)

aniDBfileInfo.py get_file_size returns 0

I ran into a case where the get_file_size function in aniDBfileInfo.py is returning a value of 0 for a file that is 280MB in size. When I changed the following code:

f = open(path)
size = len(f.read())

to:

size = os.path.getsize(path)

I now get the correct file size.

Also wouldn't "size = len(f.read())" be slow are very large files?

Possibility to use the adba without threading

Hi,

I would like to have a feature so it could be possible to disable the threading in the lib.
So this is the reason:

I have written a smallish plugin for XBMC (http://xbmc.org) using the Python API so I can mark a file as watched when I have watched it.

My code is really simple:

con = adba.Connection(log=True)
con.auth("xxxx", "xxx")


if con.authed():
    for res in files:
        con.mylistadd(res, edit=1, viewed=1)

con.logout()
con.close()

Problem is that XBMC (for some reason) gets upset over the thread(s) that adba is creating. So I wonder if it would be possible to (optional) disable it?

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.