SchapplM / xbmc-addon-service-watchedlist

Addon for Kodi Media Center to organize "watched"-status of media.
http://kodi.wiki/view/Add-on:WatchedList
GNU General Public License v3.0
32 stars 13 forks source link

Feature Request: monitor wached Youtube links #33

Open HeadLessX opened 5 years ago

HeadLessX commented 5 years ago

I have not found yet an Addon to simply show what was watched using Video Addons: be it Youtube, Vimeo or anything else. For me, main source of Online Video content is the Reddit Viever Addon. I know that all this data is stored in the main database file MyVideos[num].db in the files table. I think there's some work like this in the My Watch History Addon: (could not find original src) https://github.com/KodiGhostRider/GhostRiderRepo/tree/master/repo/plugin.video.watchhistory

Is there a way to incorporate online videos history into this Addon?

Also: some simple GUI to Show this data on my RaspberryPi would be great (using OpenElec currently). Could be a standalone Addon?

SchapplM commented 5 years ago

I also had this problem with other video addons. I think the main issue is, that the Kodi video database (MyVideos##.db) saves the watched state on a per file basis together with the description/poster/rating etc that is shown in the Movies/TV Shows section in Kodi. To save and restore the watched state with my addon, it is necessary to have the unique media descriptor such as imdb-id for movies and thetvdb-id, season and episode number for tv shows. So the video addon (youtube/vimeo/...) has to provide this information.

There are two solutions that I found for me:

  1. Export the videos from the addon to the Kodi database, then watch it via the Kodi video library (which calls the video addon via a .strm file). Then the watched state can be saved correctly. This works for example with the new netflix addon.
  2. Integrate service.watchedlist into the video addon. This only makes sense, if the addon has the id information. I already created an interface to call the watchedlist addon from other addons to get/set watched states based on imdb/thetvdb id. This is however unlikely to happen for most of the video addons. My pull request for the integration into one addon got declined to keep the code of the other addon clear.

Regarding videos, that are not "official" movies or tv episodes: This is not possible at the moment due to the addon structure. It would however be possible to create a fake movie id for each video and then save them in the watchedlist. You would need to save the videos in the Kodi movie library with that ID; probably by modifying the video addons.