rkohser / gustaf

http://rkohser.github.io/gustaf
MIT License
0 stars 0 forks source link

Create the code to populate the model and the database according to a configurable source #2

Closed rkohser closed 10 years ago

rkohser commented 10 years ago

A logic has to be found and implemented for the episode order. We cannot only rely on the sxxexx pattern as sometimes an episode is actually two episodes in a row (s01e06e07). Could use a linkedlist model, with a field of the episode table refering to itself.

rkohser commented 10 years ago

Make use of this : http://peewee.readthedocs.org/en/latest/peewee/querying.html#foreign-keys instead of the "Convenient classes" Further idea : update() (linked to refresh?) could just list the new episodes and suggest the registration to the user in the interface. Or do it directly but provide "last episodes" section pointing the automatic registration. A "merge" should be done, and not a systematic complete refresh