warren-bank / Android-Tiny-Television-Time-Tracker

A Reboot of DroidSeries Offline TV Shows Tracker
http://ltguillaume.github.io/DroidShows
GNU General Public License v3.0
12 stars 1 forks source link

Episode titles and dates not updating #6

Open Dav357 opened 1 year ago

Dav357 commented 1 year ago

After around March this year, the update function does not work any more for me. Titles and dates remains the same added the first time, i.e. TBA for season in progress. Here is an example with season 2 of Star Trek Strange New Worlds: the first screenshot is with a clean installation, episode titles and dates are shown. immagine The second one is from my normal installation, which is an import from DroidShows. immagine

If i check the DB I can see that on my normal installation the lastUpdated field is stuck to the date and time of import in March. The weird thing is that when new season show up, they appear, Loki season 2 just appeared for example.

Dav357 commented 1 year ago

After a quick glance at the (not running) code maybe the problem is in the updateSeries function in the ApiGateway class. If I understand it correctly it seems to just skip the episode data update if the oldEpisode.compareTo(newEpisode) equals 0, but it equals 0 only if there is a change in the season number or in the episode number. I also believe this bug is an extended version of #4, encompassing both episode title and date. The solution is probably in the same function. Also, the updateShowStats in the DbGateway‎ class does not update the lastUpdated field, explaining what I experienced. Thanks