winterbird-code / adbb

Object Oriented UDP Client Library for AniDB
GNU General Public License v3.0
17 stars 4 forks source link

Trouble checking watched, collected state of episodes? #3

Closed Andy2244 closed 7 years ago

Andy2244 commented 7 years ago

Hi, i have trouble getting the watched and file_type/state of a given episode?

ep = adbb.Episode(eid=123456)
ep.mylist_state or ep.mylist_viewdate

This seems only to work for a specific file? If i go to a series i have watched, the anidb http page lists the watched date and file_type under the episodes entries, independent of the actual file data. So what options i have to retrieve this information?

PS: I'm also confused on what the lid is and where to use, get it?

winterbird-code commented 7 years ago

Yes, the way to do this is to create a generic file. The idea was that it is in fact the files that are in the mylist and not the episodes. lid is the anidb mylist entry ID. If the file you have is in mylist you can access it via the lid-attribute on the file object.

Andy2244 commented 7 years ago

oki got it thx