jellyfin / jellycon

Kodi Addon for Jellyfin
https://jellyfin.org
GNU General Public License v2.0
328 stars 31 forks source link

Play Next dialogue not working / working too much #252

Open listy-bit opened 1 year ago

listy-bit commented 1 year ago

Describe the bug The Play Next dialog is very troublesome for me. At the moment it isn't appearing at all. Sometimes it appears as soon as the episode begins playing. Sometimes it appears when a music track begins playing.

To Reproduce

  1. Play content

Expected behavior Play next dialog to appear at the time specified in the settings when an episode or movie concludes, and not at any other time.

Logs (Dialog doesn't appear)


2022-12-23 05:24:07.781 T:8117     INFO <general>: JELLYFIN.jellyfin_kodi.library -> INFO::jellyfin_kodi/library.py:277 -->[ q:userdata/Series/2159190712 ]
2022-12-23 05:24:09.288 T:386      INFO <general>: JELLYFIN.jellyfin_kodi.library -> INFO::jellyfin_kodi/library.py:729 --<[ q:userdata/2159190712 ]
2022-12-23 05:24:09.847 T:8117     INFO <general>: JELLYFIN.jellyfin_kodi.library -> INFO::jellyfin_kodi/library.py:277 -->[ q:userdata/Episode/2153617552 ]
2022-12-23 05:24:11.404 T:387      INFO <general>: JELLYFIN.jellyfin_kodi.library -> INFO::jellyfin_kodi/library.py:729 --<[ q:userdata/2153617552 ]
2022-12-23 05:24:11.985 T:8117     INFO <general>: JELLYFIN.jellyfin_kodi.library -> INFO::jellyfin_kodi/library.py:455 --[ sync/2022-12-23T05:22:04z ]
2022-12-23 05:24:12.075 T:32265    INFO <general>: VideoInfoScanner: Starting scan ..
2022-12-23 05:24:12.117 T:8094     INFO <general>: JELLYFIN.jellyfin_kodi.monitor -> INFO::jellyfin_kodi/monitor.py:42 -->[ kodi scan/video ]
2022-12-23 05:24:14.098 T:32265    INFO <general>: VideoInfoScanner: Finished scan. Scanning for video info took 00:02
2022-12-23 05:24:14.181 T:8094     INFO <general>: JELLYFIN.jellyfin_kodi.monitor -> INFO::jellyfin_kodi/monitor.py:45 --<[ kodi scan/video ]
2022-12-23 05:24:43.709 T:8094     INFO <general>: JELLYFIN.jellyfin_kodi.player -> INFO::jellyfin_kodi/player.py:88 Could not find jellyfin prop...
2022-12-23 05:25:30.479 T:7891     INFO <general>: Samba is idle. Closing the remaining connections
2022-12-23 05:53:46.328 T:357      INFO <general>: CVideoPlayerAudio::Process - stream stalled
2022-12-23 05:53:46.427 T:353      INFO <general>: CVideoPlayer::OnExit()
2022-12-23 05:53:46.427 T:353      INFO <general>: VideoPlayer: eof, waiting for queues to empty
2022-12-23 05:53:46.428 T:353      INFO <general>: Closing stream player 1
2022-12-23 05:53:46.428 T:353      INFO <general>: CDVDMessageQueue(audio)::WaitUntilEmpty
2022-12-23 05:53:46.429 T:353      INFO <general>: Waiting for audio thread to exit
2022-12-23 05:53:46.429 T:357     ERROR <general>: Got MSGQ_ABORT or MSGO_IS_ERROR return true
2022-12-23 05:53:46.429 T:357      INFO <general>: thread end: CVideoPlayerAudio::OnExit()
2022-12-23 05:53:46.429 T:353      INFO <general>: Closing audio device
2022-12-23 05:53:46.432 T:353      INFO <general>: Deleting audio codec
2022-12-23 05:53:46.433 T:353      INFO <general>: Closing stream player 2
2022-12-23 05:53:46.433 T:353      INFO <general>: CDVDMessageQueue(video)::WaitUntilEmpty
2022-12-23 05:53:46.662 T:353      INFO <general>: waiting for video thread to exit
2022-12-23 05:53:46.662 T:378     ERROR <general>: Got MSGQ_ABORT or MSGO_IS_ERROR return true
2022-12-23 05:53:46.662 T:378      INFO <general>: thread end: video_thread
2022-12-23 05:53:46.663 T:353      INFO <general>: deleting video codec
2022-12-23 05:53:46.867 T:7891     INFO <general>: CVideoPlayer::CloseFile()
2022-12-23 05:53:46.867 T:7891     INFO <general>: VideoPlayer: waiting for threads to exit
2022-12-23 05:53:46.867 T:7891     INFO <general>: VideoPlayer: finished waiting
2022-12-23 05:53:46.867 T:7891     INFO <general>: CVideoPlayer::CloseFile()
2022-12-23 05:53:46.867 T:7891     INFO <general>: VideoPlayer: waiting for threads to exit
2022-12-23 05:53:46.867 T:7891     INFO <general>: VideoPlayer: finished waiting
2022-12-23 05:53:46.877 T:7891     INFO <general>: Loading skin file: DialogSeekBar.xml, load type: LOAD_ON_GUI_INIT
2022-12-23 05:53:46.915 T:7901     INFO <general>: CActiveAESink::OpenSink - initialize sink
2022-12-23 05:53:46.918 T:7901     INFO <general>: Trying to open: samplerate: 44100, channelMask: 12, encoding: 4
2022-12-23 05:53:46.934 T:7901     INFO <general>: CAESinkAUDIOTRACK::Initializing with: m_sampleRate: 44100 format: AE_FMT_FLOAT (AE) method: PCM stream-type: PCM-STREAM min_buffer_size: 56720 m_frames: 1418 m_frameSize: 8 channels: 2
2022-12-23 05:53:47.302 T:2112     INFO <general>: initializing python engine.
2022-12-23 05:53:47.764 T:8094     INFO <general>: Skipped 1 duplicate messages..
2022-12-23 05:53:47.764 T:8094     INFO <general>: JELLYFIN.jellyfin_kodi.player -> INFO::jellyfin_kodi/player.py:384 --<<[ playback ]
2022-12-23 05:53:48.161 T:2124     INFO <general>: initializing python engine.
2022-12-23 05:53:49.924 T:8094     INFO <general>: Skipped 1 duplicate messages..
2022-12-23 05:53:49.924 T:8094     INFO <general>: JELLYFIN.jellyfin_kodi.monitor -> INFO::jellyfin_kodi/monitor.py:85 [ playlist ] cleared
2022-12-23 05:53:51.100 T:8094     INFO <general>: JELLYFIN.jellyfin_kodi.entrypoint.service -> INFO::jellyfin_kodi/entrypoint/service.py:252 [ UserDataChanged ] {'UserDataList': [{'IsFavorite': False, 'ItemId': '54cf38d82fcbdbe1eed5266f06483086', 'Key': '73021002005', 'LastPlayedDate': '2022-12-23T05:24:03.3529491Z', 'PlayCount': 1, 'PlaybackPositionTicks': 0, 'Played': True}, {'IsFavorite': False, 'ItemId': '49a09d302956abd8650ba36ad91d8a90', 'Key': '73021', 'PlayCount': 0, 'PlaybackPositionTicks': 0, 'Played': False, 'UnplayedItemCount': 31}], 'UserId': '0a7a4b9435934f818d3a0d92d92834ed'}
2022-12-23 05:53:51.110 T:8094     INFO <general>: JELLYFIN.jellyfin_kodi.library -> INFO::jellyfin_kodi/library.py:561 ---[ userdata:2 ]
2022-12-23 05:53:51.699 T:2112     INFO <general>: CPythonInvoker(158, /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.themoviedb.helper/script.py): script successfully run
2022-12-23 05:53:52.226 T:2136     INFO <general>: initializing python engine.
2022-12-23 05:53:52.560 T:2112     INFO <general>: Python interpreter stopped
2022-12-23 05:53:52.634 T:8117     INFO <general>: JELLYFIN.jellyfin_kodi.library -> INFO::jellyfin_kodi/library.py:230 -->[ q:download/2135256528 ]
2022-12-23 05:53:53.001 T:2134     INFO <general>: [plugin.video.themoviedb.helper]
                                                   HTTP Error Code: 401
                                                   Request: https://api.trakt.tv//users/justin/lists/imdb-top-rated-tv-shows/items?limit=4095
                                                   Headers: {'trakt-api-version': '2', 'trakt-api-key': 'e6fde6173adf3c6af8fd1b0694b9b84d7c519cefc24482310e1de06c6abe5467', 'Content-Type': 'application/json', 'Authorization': 'Bearer 52ad2c4f2243fd5ef682ad5b235643e28bcdcd0f8479503af6349c00205bc7aa'}
2022-12-23 05:53:53.776 T:2137     INFO <general>: JELLYFIN.jellyfin_kodi.downloader -> INFO::jellyfin_kodi/downloader.py:305 --<[ q:download/2135256528 ]
2022-12-23 05:53:54.296 T:2140     INFO <general>: [plugin.video.themoviedb.helper]
                                                   HTTP Error Code: 401
                                                   Request: https://api.trakt.tv//users/justin/lists/imdb-top-rated-tv-shows/items?limit=4095
                                                   Headers: {'trakt-api-version': '2', 'trakt-api-key': 'e6fde6173adf3c6af8fd1b0694b9b84d7c519cefc24482310e1de06c6abe5467', 'Content-Type': 'application/json', 'Authorization': 'Bearer 52ad2c4f2243fd5ef682ad5b235643e28bcdcd0f8479503af6349c00205bc7aa'}
2022-12-23 05:53:54.650 T:8117     INFO <general>: JELLYFIN.jellyfin_kodi.library -> INFO::jellyfin_kodi/library.py:277 -->[ q:userdata/Series/2135256528 ]
2022-12-23 05:53:55.219 T:2116     INFO <general>: CPythonInvoker(159, /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.skinshortcuts/resources/lib/entry_point.py): script successfully run
2022-12-23 05:53:55.318 T:2144     INFO <general>: [plugin.video.themoviedb.helper]
                                                   HTTP Error Code: 401
                                                   Request: https://api.trakt.tv//users/justin/lists/imdb-top-rated-tv-shows/items?limit=4095
                                                   Headers: {'trakt-api-version': '2', 'trakt-api-key': 'e6fde6173adf3c6af8fd1b0694b9b84d7c519cefc24482310e1de06c6abe5467', 'Content-Type': 'application/json', 'Authorization': 'Bearer 52ad2c4f2243fd5ef682ad5b235643e28bcdcd0f8479503af6349c00205bc7aa'}
2022-12-23 05:53:56.329 T:2116  WARNING <general>: CPythonInvoker(159, /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.skinshortcuts/resources/lib/entry_point.py): the python script "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.skinshortcuts/resources/lib/entry_point.py" has left several classes in memory that we couldn't clean up. The classes include: N9XBMCAddon9xbmcaddon5AddonE,N9XBMCAddon7xbmcgui6WindowE
2022-12-23 05:53:56.330 T:2116     INFO <general>: Python interpreter stopped
2022-12-23 05:53:57.254 T:2168     INFO <general>: [plugin.video.themoviedb.helper]
                                                   HTTP Error Code: 401
                                                   Request: https://api.trakt.tv//users/justin/lists/imdb-top-rated-tv-shows/items?limit=4095
                                                   Headers: {'trakt-api-version': '2', 'trakt-api-key': 'e6fde6173adf3c6af8fd1b0694b9b84d7c519cefc24482310e1de06c6abe5467', 'Content-Type': 'application/json', 'Authorization': 'Bearer 52ad2c4f2243fd5ef682ad5b235643e28bcdcd0f8479503af6349c00205bc7aa'}
2022-12-23 05:53:58.887 T:2124     INFO <general>: Skipped 1 duplicate messages..
2022-12-23 05:53:58.887 T:2124     INFO <general>: JELLYFIN.default -> DEBUG::default.py:16 About to enter mainEntryPoint()
2022-12-23 05:53:58.888 T:2124     INFO <general>: JELLYFIN.resources.lib.functions -> DEBUG::resources/lib/functions.py:46 ===== JellyCon START =====
2022-12-23 05:53:58.896 T:2124     INFO <general>: JELLYFIN.resources.lib.functions -> DEBUG::resources/lib/functions.py:57 Running Python: sys.version_info(major=3, minor=8, micro=5, releaselevel='final', serial=0)
2022-12-23 05:53:58.897 T:2124     INFO <general>: JELLYFIN.resources.lib.functions -> DEBUG::resources/lib/functions.py:58 Running JellyCon: 0.6.1+py3
2022-12-23 05:53:58.898 T:2124     INFO <general>: JELLYFIN.resources.lib.functions -> DEBUG::resources/lib/functions.py:59 Kodi BuildVersion: 19.4 (19.4.0) Git:20220302-e12e66e019
2022-12-23 05:53:58.899 T:2124     INFO <general>: JELLYFIN.resources.lib.functions -> DEBUG::resources/lib/functions.py:60 Kodi Version: 19
2022-12-23 05:53:58.900 T:2124     INFO <general>: JELLYFIN.resources.lib.functions -> DEBUG::resources/lib/functions.py:61 Script argument data: ['plugin://plugin.video.jellycon/', '109', '?mode=WIDGET_CONTENT&type=nextup_episodes', 'resume:false']
2022-12-23 05:53:58.901 T:2124     INFO <general>: JELLYFIN.resources.lib.functions -> DEBUG::resources/lib/functions.py:317 Parameter string: ?mode=WIDGET_CONTENT&type=nextup_episodes
2022-12-23 05:53:58.901 T:2124     INFO <general>: JELLYFIN.resources.lib.functions -> DEBUG::resources/lib/functions.py:318 Plugin Path string: plugin://plugin.video.jellycon/
2022-12-23 05:53:58.902 T:2124     INFO <general>: JELLYFIN.resources.lib.functions -> DEBUG::resources/lib/functions.py:326 JellyCon -> Detected parameters: {'mode': 'WIDGET_CONTENT', 'type': 'nextup_episodes', 'request_path': '/'}
2022-12-23 05:53:58.904 T:2124     INFO <general>: JELLYFIN.resources.lib.functions -> DEBUG::resources/lib/functions.py:64 Script params: {'mode': 'WIDGET_CONTENT', 'type': 'nextup_episodes', 'request_path': '/'}
2022-12-23 05:53:58.905 T:2124     INFO <general>: JELLYFIN.resources.lib.widgets -> DEBUG::resources/lib/widgets.py:268 getWigetContent Called: {'mode': 'WIDGET_CONTENT', 'type': 'nextup_episodes', 'request_path': '/'}
2022-12-23 05:53:58.930 T:2124     INFO <general>: JELLYFIN.resources.lib.widgets -> DEBUG::resources/lib/widgets.py:282 widget_type: nextup_episodes
2022-12-23 05:53:58.941 T:2124     INFO <general>: JELLYFIN.resources.lib.dir_functions -> DEBUG::resources/lib/dir_functions.py:221 == ENTER: processDirectory ==
2022-12-23 05:53:59.001 T:2179     INFO <general>: [plugin.video.themoviedb.helper]
                                                   HTTP Error Code: 401
                                                   Request: https://api.trakt.tv//users/justin/lists/imdb-top-rated-tv-shows/items?limit=4095
                                                   Headers: {'trakt-api-version': '2', 'trakt-api-key': 'e6fde6173adf3c6af8fd1b0694b9b84d7c519cefc24482310e1de06c6abe5467', 'Content-Type': 'application/json', 'Authorization': 'Bearer 52ad2c4f2243fd5ef682ad5b235643e28bcdcd0f8479503af6349c00205bc7aa'}
2022-12-23 05:53:59.033 T:2124     INFO <general>: JELLYFIN.resources.lib.datamanager -> DEBUG::resources/lib/datamanager.py:53 last_content_url : use_cache=False url=/Shows/NextUp?Limit=20&Fields=DateCreated,EpisodeCount,SeasonCount,Path,Genres,Studios,Etag,Taglines,SortName,RecursiveItemCount,ChildCount,ProductionLocations,CriticRating,OfficialRating,CommunityRating,PremiereDate,ProductionYear,AirTime,Status,Tags,MediaStreams,People,Overview&ImageTypeLimit=1&IsMissing=False&userid=0a7a4b9435934f818d3a0d92d92834ed&Recursive=True&format=json
2022-12-23 05:53:59.037 T:2124     INFO <general>: JELLYFIN.resources.lib.datamanager -> DEBUG::resources/lib/datamanager.py:95 Loading url data from server
2022-12-23 05:53:59.613 T:2126     INFO <general>: JELLYFIN -> INFO::jellyfin_kodi/jellyfin/__init__.py:98 ---[ START JELLYFINCLIENT ]---
2022-12-23 05:53:59.626 T:2126     INFO <general>: JELLYFIN.jellyfin_kodi.entrypoint.default -> INFO::jellyfin_kodi/entrypoint/default.py:72 path: ?id=1071671e7bffa0532e930debee501d2e&mode=browse&type=playlists&folder=d13b9d25052c73929678a4159df85844&server=None params: {
                                                       "id": "1071671e7bffa0532e930debee501d2e",
                                                       "mode": "browse",
                                                       "type": "playlists",
                                                       "folder": "d13b9d25052c73929678a4159df85844",
                                                       "server": "None"
                                                   }
2022-12-23 05:53:59.636 T:2126     INFO <general>: JELLYFIN.jellyfin_kodi.entrypoint.default -> INFO::jellyfin_kodi/entrypoint/default.py:263 --[ v:1071671e7bffa0532e930debee501d2e/playlists ] d13b9d25052c73929678a4159df85844
2022-12-23 05:53:59.736 T:2136     INFO <general>: JELLYFIN.default -> DEBUG::default.py:16 About to enter mainEntryPoint()
2022-12-23 05:53:59.738 T:2136     INFO <general>: JELLYFIN.resources.lib.functions -> DEBUG::resources/lib/functions.py:46 ===== JellyCon START =====
2022-12-23 05:53:59.748 T:2136     INFO <general>: JELLYFIN.resources.lib.functions -> DEBUG::resources/lib/functions.py:57 Running Python: sys.version_info(major=3, minor=8, micro=5, releaselevel='final', serial=0)
2022-12-23 05:53:59.749 T:2136     INFO <general>: JELLYFIN.resources.lib.functions -> DEBUG::resources/lib/functions.py:58 Running JellyCon: 0.6.1+py3
2022-12-23 05:53:59.750 T:2136     INFO <general>: JELLYFIN.resources.lib.functions -> DEBUG::resources/lib/functions.py:59 Kodi BuildVersion: 19.4 (19.4.0) Git:20220302-e12e66e019
2022-12-23 05:53:59.751 T:2136     INFO <general>: JELLYFIN.resources.lib.functions -> DEBUG::resources/lib/functions.py:60 Kodi Version: 19
2022-12-23 05:53:59.752 T:2136     INFO <general>: JELLYFIN.resources.lib.functions -> DEBUG::resources/lib/functions.py:61 Script argument data: ['plugin://plugin.video.jellycon/', '111', '?mode=WIDGET_CONTENT&type=recent_movies', 'resume:false']
2022-12-23 05:53:59.756 T:2136     INFO <general>: JELLYFIN.resources.lib.functions -> DEBUG::resources/lib/functions.py:317 Parameter string: ?mode=WIDGET_CONTENT&type=recent_movies
2022-12-23 05:53:59.756 T:2136     INFO <general>: JELLYFIN.resources.lib.functions -> DEBUG::resources/lib/functions.py:318 Plugin Path string: plugin://plugin.video.jellycon/
2022-12-23 05:53:59.757 T:2136     INFO <general>: JELLYFIN.resources.lib.functions -> DEBUG::resources/lib/functions.py:326 JellyCon -> Detected parameters: {'mode': 'WIDGET_CONTENT', 'type': 'recent_movies', 'request_path': '/'}
2022-12-23 05:53:59.758 T:2136     INFO <general>: JELLYFIN.resources.lib.functions -> DEBUG::resources/lib/functions.py:64 Script params: {'mode': 'WIDGET_CONTENT', 'type': 'recent_movies', 'request_path': '/'}
2022-12-23 05:53:59.759 T:2136     INFO <general>: JELLYFIN.resources.lib.widgets -> DEBUG::resources/lib/widgets.py:268 getWigetContent Called: {'mode': 'WIDGET_CONTENT', 'type': 'recent_movies', 'request_path': '/'}
2022-12-23 05:53:59.800 T:2124     INFO <general>: JELLYFIN.resources.lib.item_functions -> DEBUG::resources/lib/item_functions.py:167 FormatName: {ItemName} | {'ItemName': 'Timeless Time', 'SeriesName': 'One Foot In the Grave', 'SeasonIndex': '02', 'EpisodeIndex': '06'}
2022-12-23 05:53:59.802 T:2124     INFO <general>: JELLYFIN.resources.lib.item_functions -> DEBUG::resources/lib/item_functions.py:167 FormatName: {ItemName} | {'ItemName': 'Fresh Blood', 'SeriesName': 'True Blood', 'SeasonIndex': '03', 'EpisodeIndex': '11'}
2022-12-23 05:53:59.814 T:2124     INFO <general>: JELLYFIN.resources.lib.item_functions -> DEBUG::resources/lib/item_functions.py:167 FormatName: {ItemName} | {'ItemName': "Sumner's Return", 'SeriesName': 'Cheers', 'SeasonIndex': '02', 'EpisodeIndex': '05'}
2022-12-23 05:53:59.815 T:2124     INFO <general>: JELLYFIN.resources.lib.item_functions -> DEBUG::resources/lib/item_functions.py:167 FormatName: {ItemName} | {'ItemName': 'Snakedance (2)', 'SeriesName': 'Doctor Who', 'SeasonIndex': '20', 'EpisodeIndex': '06'}
2022-12-23 05:53:59.817 T:2124     INFO <general>: JELLYFIN.resources.lib.item_functions -> DEBUG::resources/lib/item_functions.py:167 FormatName: {ItemName} | {'ItemName': 'Chapter V: You Reap What You Woe', 'SeriesName': 'Wednesday', 'SeasonIndex': '01', 'EpisodeIndex': '05'}
2022-12-23 05:53:59.819 T:2124     INFO <general>: JELLYFIN.resources.lib.item_functions -> DEBUG::resources/lib/item_functions.py:167 FormatName: {ItemName} | {'ItemName': 'Dear Mama', 'SeriesName': 'Roswell, New Mexico', 'SeasonIndex': '04', 'EpisodeIndex': '04'}
2022-12-23 05:53:59.821 T:2124     INFO <general>: JELLYFIN.resources.lib.item_functions -> DEBUG::resources/lib/item_functions.py:167 FormatName: {ItemName} | {'ItemName': 'The Hangman (1)', 'SeriesName': 'Three Pines', 'SeasonIndex': '01', 'EpisodeIndex': '07'}
2022-12-23 05:53:59.833 T:2124     INFO <general>: JELLYFIN.resources.lib.item_functions -> DEBUG::resources/lib/item_functions.py:167 FormatName: {ItemName} | {'ItemName': 'Day 2: 1:00 P.M.-2:00 P.M.', 'SeriesName': '24', 'SeasonIndex': '02', 'EpisodeIndex': '06'}
2022-12-23 05:53:59.835 T:2124     INFO <general>: JELLYFIN.resources.lib.item_functions -> DEBUG::resources/lib/item_functions.py:167 FormatName: {ItemName} | {'ItemName': 'Pregnancy Test', 'SeriesName': "Schitt's Creek", 'SeasonIndex': '04', 'EpisodeIndex': '02'}
2022-12-23 05:53:59.847 T:2124     INFO <general>: JELLYFIN.resources.lib.item_functions -> DEBUG::resources/lib/item_functions.py:167 FormatName: {ItemName} | {'ItemName': 'Boardroom Politics', 'SeriesName': 'Slow Horses', 'SeasonIndex': '02', 'EpisodeIndex': '05'}
2022-12-23 05:53:59.849 T:2124     INFO <general>: JELLYFIN.resources.lib.item_functions -> DEBUG::resources/lib/item_functions.py:167 FormatName: {ItemName} | {'ItemName': 'Casey Patrol', 'SeriesName': 'Doom Patrol', 'SeasonIndex': '04', 'EpisodeIndex': '04'}
2022-12-23 05:53:59.851 T:2124     INFO <general>: JELLYFIN.resources.lib.item_functions -> DEBUG::resources/lib/item_functions.py:167 FormatName: {ItemName} | {'ItemName': 'Sarian', 'SeriesName': 'Mythic Quest', 'SeasonIndex': '03', 'EpisodeIndex': '07'}
2022-12-23 05:53:59.853 T:2124     INFO <general>: JELLYFIN.resources.lib.item_functions -> DEBUG::resources/lib/item_functions.py:167 FormatName: {ItemName} | {'ItemName': 'Token Joe', 'SeriesName': 'Tulsa King', 'SeasonIndex': '01', 'EpisodeIndex': '05'}
2022-12-23 05:53:59.855 T:2124     INFO <general>: JELLYFIN.resources.lib.item_functions -> DEBUG::resources/lib/item_functions.py:167 FormatName: {ItemName} | {'ItemName': 'Back and Forth', 'SeriesName': 'Blackadder', 'SeasonIndex': '00', 'EpisodeIndex': '03'}
2022-12-23 05:53:59.856 T:2124     INFO <general>: JELLYFIN.resources.lib.item_functions -> DEBUG::resources/lib/item_functions.py:167 FormatName: {ItemName} | {'ItemName': 'Angel Hair', 'SeriesName': 'Jonathan Creek', 'SeasonIndex': '04', 'EpisodeIndex': '02'}
2022-12-23 05:53:59.857 T:2124     INFO <general>: JELLYFIN.resources.lib.item_functions -> DEBUG::resources/lib/item_functions.py:167 FormatName: {ItemName} | {'ItemName': 'Fifty Shades of Grayson', 'SeriesName': 'The Vampire Diaries', 'SeasonIndex': '05', 'EpisodeIndex': '10'}
2022-12-23 05:53:59.870 T:2124     INFO <general>: JELLYFIN.resources.lib.item_functions -> DEBUG::resources/lib/item_functions.py:167 FormatName: {ItemName} | {'ItemName': 'The Casket Girls', 'SeriesName': 'The Originals', 'SeasonIndex': '01', 'EpisodeIndex': '10'}
2022-12-23 05:53:59.872 T:2124     INFO <general>: JELLYFIN.resources.lib.item_functions -> DEBUG::resources/lib/item_functions.py:167 FormatName: {ItemName} | {'ItemName': 'Running Mates', 'SeriesName': 'The West Wing', 'SeasonIndex': '07', 'EpisodeIndex': '10'}
2022-12-23 05:53:59.874 T:2124     INFO <general>: JELLYFIN.resources.lib.item_functions -> DEBUG::resources/lib/item_functions.py:167 FormatName: {ItemName} | {'ItemName': 'Battles', 'SeriesName': 'Spaced', 'SeasonIndex': '01', 'EpisodeIndex': '04'}
2022-12-23 05:53:59.886 T:2124     INFO <general>: JELLYFIN.resources.lib.item_functions -> DEBUG::resources/lib/item_functions.py:167 FormatName: {ItemName} | {'ItemName': 'Hedgehunter', 'SeriesName': "Pennyworth: The Origin of Batman's Butler", 'SeasonIndex': '03', 'EpisodeIndex': '06'}
2022-12-23 05:53:59.921 T:2136     INFO <general>: JELLYFIN.resources.lib.widgets -> DEBUG::resources/lib/widgets.py:282 widget_type: recent_movies
2022-12-23 05:53:59.932 T:2136     INFO <general>: JELLYFIN.resources.lib.dir_functions -> DEBUG::resources/lib/dir_functions.py:221 == ENTER: processDirectory ==
2022-12-23 05:53:59.997 T:2136     INFO <general>: JELLYFIN.resources.lib.datamanager -> DEBUG::resources/lib/datamanager.py:53 last_content_url : use_cache=False url=/Users/0a7a4b9435934f818d3a0d92d92834ed/Items?Limit=20&Fields=DateCreated,EpisodeCount,SeasonCount,Path,Genres,Studios,Etag,Taglines,SortName,RecursiveItemCount,ChildCount,ProductionLocations,CriticRating,OfficialRating,CommunityRating,PremiereDate,ProductionYear,AirTime,Status,Tags,MediaStreams,People,Overview&ImageTypeLimit=1&IsMissing=False&Recursive=True&SortBy=DateCreated&SortOrder=Descending&Filters=IsNotFolder&IsPlayed=False&IsVirtualUnaired=False&IncludeItemTypes=Movie&format=json
2022-12-23 05:54:00.000 T:2136     INFO <general>: JELLYFIN.resources.lib.datamanager -> DEBUG::resources/lib/datamanager.py:95 Loading url data from server
2022-12-23 05:54:00.092 T:2184     INFO <general>: [plugin.video.themoviedb.helper]
                                                   HTTP Error Code: 401
                                                   Request: https://api.trakt.tv//users/justin/lists/imdb-top-rated-tv-shows/items?limit=4095
                                                   Headers: {'trakt-api-version': '2', 'trakt-api-key': 'e6fde6173adf3c6af8fd1b0694b9b84d7c519cefc24482310e1de06c6abe5467', 'Content-Type': 'application/json', 'Authorization': 'Bearer 52ad2c4f2243fd5ef682ad5b235643e28bcdcd0f8479503af6349c00205bc7aa'}
2022-12-23 05:54:00.197 T:2124     INFO <general>: JELLYFIN.resources.lib.dir_functions -> DEBUG::resources/lib/dir_functions.py:221 == ENTER: processDirectory ==
2022-12-23 05:54:00.288 T:2124     INFO <general>: JELLYFIN.resources.lib.datamanager -> DEBUG::resources/lib/datamanager.py:53 last_content_url : use_cache=False url=/Users/0a7a4b9435934f818d3a0d92d92834ed/Items?Limit=20&Fields=DateCreated,EpisodeCount,SeasonCount,Path,Genres,Studios,Etag,Taglines,SortName,RecursiveItemCount,ChildCount,ProductionLocations,CriticRating,OfficialRating,CommunityRating,PremiereDate,ProductionYear,AirTime,Status,Tags,MediaStreams,People,Overview&ImageTypeLimit=1&IsMissing=False&userid=0a7a4b9435934f818d3a0d92d92834ed&Recursive=True&SortBy=DatePlayed&SortOrder=Descending&Filters=IsResumable&IsVirtualUnaired=False&IncludeItemTypes=Episode&format=json
2022-12-23 05:54:00.291 T:2124     INFO <general>: JELLYFIN.resources.lib.datamanager -> DEBUG::resources/lib/datamanager.py:95 Loading url data from server
2022-12-23 05:54:00.397 T:2124     INFO <general>: JELLYFIN.resources.lib.item_functions -> DEBUG::resources/lib/item_functions.py:167 FormatName: {ItemName} | {'ItemName': 'Yeah, Just Like Tomatoes', 'SeriesName': 'Weeds', 'SeasonIndex': '02', 'EpisodeIndex': '11'}
2022-12-23 05:54:00.398 T:2124     INFO <general>: JELLYFIN.resources.lib.item_functions -> DEBUG::resources/lib/item_functions.py:167 FormatName: {ItemName} | {'ItemName': 'Episode 1', 'SeriesName': 'Spiral', 'SeasonIndex': '06', 'EpisodeIndex': '01'}
2022-12-23 05:54:00.410 T:2124     INFO <general>: JELLYFIN.resources.lib.widgets -> DEBUG::resources/lib/widgets.py:428 Detected content type: Episode
2022-12-23 05:54:00.420 T:2124     INFO <general>: JELLYFIN.resources.lib.functions -> DEBUG::resources/lib/functions.py:166 ===== JellyCon FINISHED =====
2022-12-23 05:54:00.421 T:2124     INFO <general>: CPythonInvoker(160, /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.jellycon/default.py): script successfully run
2022-12-23 05:54:01.099 T:2190     INFO <general>: initializing python engine.
2022-12-23 05:54:01.574 T:2124     INFO <general>: Python interpreter stopped
2022-12-23 05:54:02.167 T:2188     INFO <general>: [plugin.video.themoviedb.helper]
                                                   HTTP Error Code: 401
                                                   Request: https://api.trakt.tv//users/justin/lists/imdb-top-rated-tv-shows/items?limit=4095
                                                   Headers: {'trakt-api-version': '2', 'trakt-api-key': 'e6fde6173adf3c6af8fd1b0694b9b84d7c519cefc24482310e1de06c6abe5467', 'Content-Type': 'application/json', 'Authorization': 'Bearer 52ad2c4f2243fd5ef682ad5b235643e28bcdcd0f8479503af6349c00205bc7aa'}
2022-12-23 05:54:02.281 T:2136     INFO <general>: JELLYFIN.resources.lib.widgets -> DEBUG::resources/lib/widgets.py:428 Detected content type: Movie
2022-12-23 05:54:02.291 T:2136     INFO <general>: JELLYFIN.resources.lib.functions -> DEBUG::resources/lib/functions.py:166 ===== JellyCon FINISHED =====
2022-12-23 05:54:02.292 T:2136     INFO <general>: CPythonInvoker(162, /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.jellycon/default.py): script successfully run
2022-12-23 05:54:02.359 T:2202     INFO <general>: initializing python engine.
2022-12-23 05:54:03.368 T:2136     INFO <general>: Python interpreter stopped
2022-12-23 05:54:03.758 T:2200     INFO <general>: [plugin.video.themoviedb.helper]
                                                   HTTP Error Code: 401
                                                   Request: https://api.trakt.tv//users/justin/lists/imdb-top-rated-tv-shows/items?limit=4095
                                                   Headers: {'trakt-api-version': '2', 'trakt-api-key': 'e6fde6173adf3c6af8fd1b0694b9b84d7c519cefc24482310e1de06c6abe5467', 'Content-Type': 'application/json', 'Authorization': 'Bearer 52ad2c4f2243fd5ef682ad5b235643e28bcdcd0f8479503af6349c00205bc7aa'}
2022-12-23 05:54:06.364 T:2190     INFO <general>: Skipped 2 duplicate messages..
2022-12-23 05:54:06.364 T:2190     INFO <general>: JELLYFIN.default -> DEBUG::default.py:16 About to enter mainEntryPoint()
2022-12-23 05:54:06.365 T:2190     INFO <general>: JELLYFIN.resources.lib.functions -> DEBUG::resources/lib/functions.py:46 ===== JellyCon START =====
2022-12-23 05:54:06.375 T:2190     INFO <general>: JELLYFIN.resources.lib.functions -> DEBUG::resources/lib/functions.py:57 Running Python: sys.version_info(major=3, minor=8, micro=5, releaselevel='final', serial=0)
2022-12-23 05:54:06.376 T:2190     INFO <general>: JELLYFIN.resources.lib.functions -> DEBUG::resources/lib/functions.py:58 Running JellyCon: 0.6.1+py3
2022-12-23 05:54:06.377 T:2190     INFO <general>: JELLYFIN.resources.lib.functions -> DEBUG::resources/lib/functions.py:59 Kodi BuildVersion: 19.4 (19.4.0) Git:20220302-e12e66e019
2022-12-23 05:54:06.378 T:2190     INFO <general>: JELLYFIN.resources.lib.functions -> DEBUG::resources/lib/functions.py:60 Kodi Version: 19
2022-12-23 05:54:06.379 T:2190     INFO <general>: JELLYFIN.resources.lib.functions -> DEBUG::resources/lib/functions.py:61 Script argument data: ['plugin://plugin.video.jellycon/', '112', '?url=/Users/%7Buserid%7D/Items%3FParentId%3D41b828aaa7111da79fc13d358edf897c%26Recursive%3DTrue%26ImageTypeLimit%3D1%26IncludeItemTypes%3DAudio%26Limit%3D20%26IsPlayed%3DTrue%26SortBy%3DPlayCount%26SortOrder%3DDescending%26format%3Djson&mode=GET_CONTENT&media_type=MusicAlbum', 'resume:false']
2022-12-23 05:54:06.381 T:2190     INFO <general>: JELLYFIN.resources.lib.functions -> DEBUG::resources/lib/functions.py:317 Parameter string: ?url=/Users/%7Buserid%7D/Items%3FParentId%3D41b828aaa7111da79fc13d358edf897c%26Recursive%3DTrue%26ImageTypeLimit%3D1%26IncludeItemTypes%3DAudio%26Limit%3D20%26IsPlayed%3DTrue%26SortBy%3DPlayCount%26SortOrder%3DDescending%26format%3Djson&mode=GET_CONTENT&media_type=MusicAlbum
2022-12-23 05:54:06.382 T:2190     INFO <general>: JELLYFIN.resources.lib.functions -> DEBUG::resources/lib/functions.py:318 Plugin Path string: plugin://plugin.video.jellycon/
2022-12-23 05:54:06.387 T:2190     INFO <general>: JELLYFIN.resources.lib.functions -> DEBUG::resources/lib/functions.py:326 JellyCon -> Detected parameters: {'url': '/Users/{userid}/Items?ParentId=41b828aaa7111da79fc13d358edf897c&Recursive=True&ImageTypeLimit=1&IncludeItemTypes=Audio&Limit=20&IsPlayed=True&SortBy=PlayCount&SortOrder=Descending&format=json', 'mode': 'GET_CONTENT', 'media_type': 'MusicAlbum', 'request_path': '/'}
2022-12-23 05:54:06.388 T:2190     INFO <general>: JELLYFIN.resources.lib.functions -> DEBUG::resources/lib/functions.py:64 Script params: {'url': '/Users/{userid}/Items?ParentId=41b828aaa7111da79fc13d358edf897c&Recursive=True&ImageTypeLimit=1&IncludeItemTypes=Audio&Limit=20&IsPlayed=True&SortBy=PlayCount&SortOrder=Descending&format=json', 'mode': 'GET_CONTENT', 'media_type': 'MusicAlbum', 'request_path': '/'}
2022-12-23 05:54:06.389 T:2190     INFO <general>: JELLYFIN.resources.lib.functions -> DEBUG::resources/lib/functions.py:140 JellyCon -> Mode: GET_CONTENT
2022-12-23 05:54:06.389 T:2190     INFO <general>: JELLYFIN.resources.lib.functions -> DEBUG::resources/lib/functions.py:141 JellyCon -> URL: /Users/{userid}/Items?ParentId=41b828aaa7111da79fc13d358edf897c&Recursive=True&ImageTypeLimit=1&IncludeItemTypes=Audio&Limit=20&IsPlayed=True&SortBy=PlayCount&SortOrder=Descending&format=json
2022-12-23 05:54:06.390 T:2190     INFO <general>: JELLYFIN.resources.lib.dir_functions -> DEBUG::resources/lib/dir_functions.py:23 == ENTER: getContent ==
2022-12-23 05:54:06.393 T:2190     INFO <general>: JELLYFIN.resources.lib.dir_functions -> DEBUG::resources/lib/dir_functions.py:30 URL: /Users/{userid}/Items?ParentId=41b828aaa7111da79fc13d358edf897c&Recursive=True&ImageTypeLimit=1&IncludeItemTypes=Audio&Limit=20&IsPlayed=True&SortBy=PlayCount&SortOrder=Descending&format=json
2022-12-23 05:54:06.393 T:2190     INFO <general>: JELLYFIN.resources.lib.dir_functions -> DEBUG::resources/lib/dir_functions.py:31 MediaType: MusicAlbum
2022-12-23 05:54:06.395 T:2190     INFO <general>: JELLYFIN.resources.lib.dir_functions -> DEBUG::resources/lib/dir_functions.py:77 media_type:musicalbum content_type:songs view_type:Music 
2022-12-23 05:54:06.405 T:2190     INFO <general>: JELLYFIN.resources.lib.dir_functions -> DEBUG::resources/lib/dir_functions.py:221 == ENTER: processDirectory ==
2022-12-23 05:54:06.461 T:2190     INFO <general>: JELLYFIN.resources.lib.datamanager -> DEBUG::resources/lib/datamanager.py:53 last_content_url : use_cache=True url=/Users/0a7a4b9435934f818d3a0d92d92834ed/Items?ParentId=41b828aaa7111da79fc13d358edf897c&Recursive=True&ImageTypeLimit=1&IncludeItemTypes=Audio&Limit=20&IsPlayed=True&SortBy=PlayCount&SortOrder=Descending&format=json
2022-12-23 05:54:06.463 T:2190     INFO <general>: JELLYFIN.resources.lib.datamanager -> DEBUG::resources/lib/datamanager.py:74 Clearing cache data and loading new data
2022-12-23 05:54:06.468 T:2190     INFO <general>: JELLYFIN.resources.lib.datamanager -> DEBUG::resources/lib/datamanager.py:95 Loading url data from server
2022-12-23 05:54:06.755 T:2190    ERROR <general>: NEWADDON Unknown Music Info Key "sorttitle"
2022-12-23 05:54:06.755 T:2190    ERROR <general>: NEWADDON Unknown Music Info Key "top250"
2022-12-23 05:54:06.758 T:2190    ERROR <general>: NEWADDON Unknown Music Info Key "sorttitle"
2022-12-23 05:54:06.758 T:2190    ERROR <general>: NEWADDON Unknown Music Info Key "top250"
2022-12-23 05:54:06.760 T:2190    ERROR <general>: NEWADDON Unknown Music Info Key "sorttitle"
2022-12-23 05:54:06.760 T:2190    ERROR <general>: NEWADDON Unknown Music Info Key "top250"
2022-12-23 05:54:06.763 T:2190    ERROR <general>: NEWADDON Unknown Music Info Key "sorttitle"
2022-12-23 05:54:06.763 T:2190    ERROR <general>: NEWADDON Unknown Music Info Key "top250"
2022-12-23 05:54:06.764 T:2190    ERROR <general>: NEWADDON Unknown Music Info Key "sorttitle"
2022-12-23 05:54:06.764 T:2190    ERROR <general>: NEWADDON Unknown Music Info Key "top250"
2022-12-23 05:54:06.766 T:2190    ERROR <general>: NEWADDON Unknown Music Info Key "sorttitle"
2022-12-23 05:54:06.766 T:2190    ERROR <general>: NEWADDON Unknown Music Info Key "top250"
2022-12-23 05:54:06.768 T:2190    ERROR <general>: NEWADDON Unknown Music Info Key "sorttitle"
2022-12-23 05:54:06.768 T:2190    ERROR <general>: NEWADDON Unknown Music Info Key "top250"
2022-12-23 05:54:06.769 T:2190    ERROR <general>: NEWADDON Unknown Music Info Key "sorttitle"
2022-12-23 05:54:06.769 T:2190    ERROR <general>: NEWADDON Unknown Music Info Key "top250"
2022-12-23 05:54:06.771 T:2190    ERROR <general>: NEWADDON Unknown Music Info Key "sorttitle"
2022-12-23 05:54:06.771 T:2190    ERROR <general>: NEWADDON Unknown Music Info Key "top250"
2022-12-23 05:54:06.772 T:2190    ERROR <general>: NEWADDON Unknown Music Info Key "sorttitle"
2022-12-23 05:54:06.772 T:2190    ERROR <general>: NEWADDON Unknown Music Info Key "top250"
2022-12-23 05:54:06.775 T:2190    ERROR <general>: NEWADDON Unknown Music Info Key "sorttitle"
2022-12-23 05:54:06.775 T:2190    ERROR <general>: NEWADDON Unknown Music Info Key "top250"
2022-12-23 05:54:06.799 T:2190    ERROR <general>: NEWADDON Unknown Music Info Key "sorttitle"
2022-12-23 05:54:06.799 T:2190    ERROR <general>: NEWADDON Unknown Music Info Key "top250"
2022-12-23 05:54:06.801 T:2190    ERROR <general>: NEWADDON Unknown Music Info Key "sorttitle"
2022-12-23 05:54:06.802 T:2190    ERROR <general>: NEWADDON Unknown Music Info Key "top250"
2022-12-23 05:54:06.803 T:2190    ERROR <general>: NEWADDON Unknown Music Info Key "sorttitle"
2022-12-23 05:54:06.803 T:2190    ERROR <general>: NEWADDON Unknown Music Info Key "top250"
2022-12-23 05:54:06.804 T:2190    ERROR <general>: NEWADDON Unknown Music Info Key "sorttitle"
2022-12-23 05:54:06.804 T:2190    ERROR <general>: NEWADDON Unknown Music Info Key "top250"
2022-12-23 05:54:06.805 T:2190    ERROR <general>: NEWADDON Unknown Music Info Key "sorttitle"
2022-12-23 05:54:06.805 T:2190    ERROR <general>: NEWADDON Unknown Music Info Key "top250"
2022-12-23 05:54:06.808 T:2190    ERROR <general>: NEWADDON Unknown Music Info Key "sorttitle"
2022-12-23 05:54:06.809 T:2190    ERROR <general>: NEWADDON Unknown Music Info Key "top250"
2022-12-23 05:54:06.811 T:2190    ERROR <general>: NEWADDON Unknown Music Info Key "sorttitle"
2022-12-23 05:54:06.811 T:2190    ERROR <general>: NEWADDON Unknown Music Info Key "top250"
2022-12-23 05:54:06.812 T:2190    ERROR <general>: NEWADDON Unknown Music Info Key "sorttitle"
2022-12-23 05:54:06.812 T:2190    ERROR <general>: NEWADDON Unknown Music Info Key "top250"
2022-12-23 05:54:06.814 T:2190    ERROR <general>: NEWADDON Unknown Music Info Key "sorttitle"
2022-12-23 05:54:06.814 T:2190    ERROR <general>: NEWADDON Unknown Music Info Key "top250"
2022-12-23 05:54:06.818 T:2249     INFO <general>: JELLYFIN.resources.lib.datamanager -> DEBUG::resources/lib/datamanager.py:163 CacheManagerThread : Started
2022-12-23 05:54:06.820 T:2190     INFO <general>: JELLYFIN.resources.lib.dir_functions -> DEBUG::resources/lib/dir_functions.py:117 total_records: 3192
2022-12-23 05:54:06.821 T:2190     INFO <general>: JELLYFIN.resources.lib.dir_functions -> DEBUG::resources/lib/dir_functions.py:179 SETTING_SORT for media type: Music
2022-12-23 05:54:06.831 T:2190     INFO <general>: JELLYFIN.resources.lib.dir_functions -> DEBUG::resources/lib/dir_functions.py:196 SETTING_SORT preset_sort_order: 
2022-12-23 05:54:06.835 T:2190     INFO <general>: JELLYFIN.resources.lib.dir_functions -> DEBUG::resources/lib/dir_functions.py:169 No view id for view type:view-songs
2022-12-23 05:54:06.839 T:2190     INFO <general>: JELLYFIN.resources.lib.functions -> DEBUG::resources/lib/functions.py:166 ===== JellyCon FINISHED =====

System (please complete the following information):

Additional context It would be nice to be able to turn this feature off entirely as well in settings.

mcarlton00 commented 1 year ago

I've never seen the play next dialog happen with music. Based on how the code works, it should flat out be impossible for music to trigger it.

Have you adjusted the settings at all to try to tune it? It's under "Show add-on settings -> Events". I suppose it's possible there's a weird combination of settings that are conflicting, but I've never seen any of the issues you're reporting. The only oddity I've seen is that it will sometimes do the same popup multiple times on top of each other, but I've never seen it when I'm in a position to debug

listy-bit commented 1 year ago

Show at time left: 40s Play Next episode after 100% Prompt before play N Prompt to delete 100%

The worst part is it's random and can't be turned off. 50% of the time nothing, 40% of the time everything, 10% of the time it works properly. It happens more often than that for music though.

listy-bit commented 1 year ago

I uninstalled Jellycon and reinstalled it, and the dialog was deactivated (as per defaults). However when I set it to 40s, it still wouldn't appear. Setting it to 180s, saving, and then back to 40s makes the dialog appear but as before, at the beginning and end of play sessions. Settings.xml confirms that play_next_trigger_time = 40.

mcarlton00 commented 1 year ago

I've replicated your settings and have been using it for several days. So far, I've had the play next dialog show at the beginning of an episode exactly 1 time (when I changed "play next episode after %" to 95 and the first play after restarting Kodi). It's never showed up at all in many hours of music tracks