Goldenfreddy0703 / Otaku

Repository for Otaku Development
GNU General Public License v3.0
108 stars 21 forks source link

Otaku Errors after recent updates #63

Closed AakashC2020 closed 1 year ago

AakashC2020 commented 1 year ago

Hi @Goldenfreddy0703 and @Gujal00,

After the recent last few updates I noticed several issues with Otaku. They are as follows:

1) As soon as any video is played after scraping, immediately Otaku Error notification appears on screen. 2) Episodes/Movies are not getting marked as watched in Anilist. 3) Rescrape and normal scrape results are different. 4) Next up window not appearing at the end of an episode. 5) Cache 0% issue while rewinding or forwarding (without using VPN). 6) Title and summary not appearing on player OSD.

These issues are happening both within the addon and from widget as well. I'm seeing these issues when I'm connected to NordVPN (as Nyaa doesn't work without VPN due to my ISP). I'm using Kodi Nexus v20 on Nvidia Shield TV Pro. My Kodi log is as follows:

https://paste.kodi.tv/edapuwepul

Kindly check and advise.

Thanks and Regards, ShibajiCh.

Goldenfreddy0703 commented 1 year ago

Hey so if your a Verizon user and your isp does not allow Nyaa, we have an option for specifically Verizon users and we hope that helps you out. image

  1. Im not sure why but just incase, may need to clear cache, clear torrent cache, rebuild database, and possibly wipe addon data. image

  2. You may have to reauthenticate your watchlist again. image

  3. That has been a known problem and we plan to take that out someday.

  4. That could be a widget issue cause we are still having widget bugs.

  5. Some anime embeds could be slow, Example Gogo, sometime Animepehe.

  6. Differently a widget bug or possibly a watchlist bug with next up.

Nvidia Shield TV's have been problems for kodi for some odd reason cause multiple people have been using kodi on that device.

Btw make sure to follow all the the troubleshooting steps and all. https://github.com/Goldenfreddy0703/Otaku/issues/15

Just know that widgets have been a major bug with Otaku due to playlist issues with them.

AakashC2020 commented 1 year ago

Hi @Goldenfreddy0703,

I've already tried all the troubleshooting steps but still I'm getting the Otaku error at the start of every video playback. This issue started happening either after yesterday or today's update. I'm on VPN so Nyaa is working fine for me now. I've re-authenticated Anilist as well. Please check the Kodi error log that I shared earlier, there are a few errors with Otaku that I can see. The issue is happening from both within the addon as well as from widgets. Could you please check and advise?

Thanks and Regards, ShibajiCh.

Goldenfreddy0703 commented 1 year ago

Im sorry but i have to ask, how did you install this kodi apk? I see kodinerds mentioned in the appdata part of kodi and i have a feeling that could be the issue from looks at your kodi install information.

Goldenfreddy0703 commented 1 year ago

The log shows:

These log entries suggest that the software may be encountering issues with the functionality of various addons and the playback of media.

AakashC2020 commented 1 year ago

Hi @Goldenfreddy0703,

Yes, I'm using Kodinerds Maven build to get Dolby Vision. However, I didn't face these issues before today on the same build. These issues started happening from today only. Also, like I said the issues are mainly happening when I'm connected to VPN. The VPN solves the Nyaa problem but I'm getting the error at the start of every video playback. Turning off the VPN temporarily resolves the error but then I won't be able to access the Nyaa links. Kindly advise.

Thanks and Regards, ShibajiCh.

Goldenfreddy0703 commented 1 year ago

Ok so its the VPN then. Ok well without the VPN, can you access this site?

https://nyaa.iss.ink/ Yes or no

AakashC2020 commented 1 year ago

Hi @Goldenfreddy0703,

What are these errors about?

2023-02-05 01:14:20.542 T:22161 info : Loading skin file: /storage/emulated/0/Android/data/net.kodinerds.maven.kodi20/files/.kodi/addons/plugin.video.otaku/resources/skins/Default/1080i/get_sources.xml, load type: LOAD_ON_GUI_INIT 2023-02-05 01:14:27.485 T:22161 info : Loading skin file: /storage/emulated/0/Android/data/net.kodinerds.maven.kodi20/files/.kodi/addons/plugin.video.otaku/resources/skins/Default/1080i/source_select.xml, load type: LOAD_ON_GUI_INIT 2023-02-05 01:14:32.071 T:22161 info : Loading skin file: /storage/emulated/0/Android/data/net.kodinerds.maven.kodi20/files/.kodi/addons/plugin.video.otaku/resources/skins/Default/1080i/resolver.xml, load type: LOAD_ON_GUI_INIT 2023-02-05 01:14:35.228 T:24689 error : EXCEPTION: array out of bound 2023-02-05 01:14:39.036 T:22161 info : VideoPlayer::OpenFile: plugin://plugin.video.otaku/play/16498/2/ 2023-02-05 01:14:39.041 T:24765 info : Creating InputStream 2023-02-05 01:14:39.087 T:24689 error : EXCEPTION: array out of bound 2023-02-05 01:14:40.334 T:24765 info : Creating Demuxer 2023-02-05 01:14:44.292 T:24765 info : Opening stream: 0 source: 256 2023-02-05 01:14:44.293 T:24765 info : Creating video codec with codec id: 173 2023-02-05 01:14:44.293 T:24765 info : CBitstreamConverter::Open bitstream to annexb init 2023-02-05 01:14:44.312 T:24765 info : CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.Nvidia.mp2.decoder 2023-02-05 01:14:44.320 T:24765 info : CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.Nvidia.wma.decoder 2023-02-05 01:14:44.320 T:24765 info : CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.Nvidia.h264.decode 2023-02-05 01:14:44.321 T:24765 info : CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.Nvidia.DOVI.decode 2023-02-05 01:14:44.321 T:24765 info : CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.Nvidia.h263.decode 2023-02-05 01:14:44.321 T:24765 info : CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.Nvidia.h265.decode 2023-02-05 01:14:44.926 T:24765 info : CDVDVideoCodecAndroidMediaCodec:: Open Android MediaCodec OMX.Nvidia.h265.decode 2023-02-05 01:14:44.926 T:24765 info : Creating video thread 2023-02-05 01:14:44.931 T:24791 info : running thread: video_thread 2023-02-05 01:14:44.937 T:24765 info : Opening stream: 2 source: 256 2023-02-05 01:14:44.937 T:24765 info : Finding audio codec for: 86076 2023-02-05 01:14:44.937 T:24765 info : CDVDAudioCodecAndroidMediaCodec: Unknown hints.codec(86076) 2023-02-05 01:14:44.938 T:24765 info : CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder opus 2023-02-05 01:14:44.938 T:24765 info : Creating audio thread 2023-02-05 01:14:44.939 T:24792 info : running thread: CVideoPlayerAudio::Process() 2023-02-05 01:14:44.939 T:24765 info : Opening stream: 3 source: 256 2023-02-05 01:14:44.939 T:24765 info : CDVDSubtitlesLibass: Using libass version 1502000 2023-02-05 01:14:44.939 T:24765 info : CDVDSubtitlesLibass: Creating ASS library structure 2023-02-05 01:14:44.939 T:24765 info : CDVDSubtitlesLibass: Initializing ASS Renderer 2023-02-05 01:14:44.962 T:24765 info : CDVDSubtitlesLibass: Initializing ASS library font settings 2023-02-05 01:14:45.010 T:24689 error : EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--

AakashC2020 commented 1 year ago

Ok so its the VPN then. Ok well without the VPN, can you access this site?

https://nyaa.iss.ink/ Yes or no

Yes this site is accessible without VPN.

Goldenfreddy0703 commented 1 year ago

These log messages appear to be from a Kodi-based media player running on an Android device. The messages show that the player is loading skin files, attempting to play a video file, and initializing codecs for video and audio playback. The errors "array out of bound" indicate that there is an issue accessing an array that is beyond the valid bounds of its index, which could potentially cause a crash or unexpected behavior.

Goldenfreddy0703 commented 1 year ago

Ok so its the VPN then. Ok well without the VPN, can you access this site? https://nyaa.iss.ink/ Yes or no

Yes this site is accessible without VPN.

Ok then enable Nyaa Alt on Otaku and don't use the vpn and that should resolve your issue. image

Goldenfreddy0703 commented 1 year ago

I still don't understand the skin files thing in your log cause it could be due to the kodi nerds build that you have.

AakashC2020 commented 1 year ago

Ok so its the VPN then. Ok well without the VPN, can you access this site? https://nyaa.iss.ink/ Yes or no

Yes this site is accessible without VPN.

Ok then enable Nyaa Alt on Otaku and don't use the vpn and that should resolve your issue. image

Hi @Goldenfreddy0703,

Even though the site is accessible I'm not able to get any links from Nyaa Alt without the VPN. That's the reason I've been using the VPN. However, since yesterday or today's update I'm getting the Otaku error while using the VPN. 🙁 Don't know what to do.

Thanks and Regards, ShibajiCh.

AakashC2020 commented 1 year ago

Nevertheless, why will the VPN cause issues suddenly when it's working for everything else perfectly fine? Any ideas?

Goldenfreddy0703 commented 1 year ago

Not really sure, maybe the vpn can't really access other stuff or it could mainly be due to your kodi build cause your build is from kodinerds so yeah.

Is Otaku now working for you fine?

AakashC2020 commented 1 year ago

build

Hi @Goldenfreddy0703,

I checked further. Both Nyaa and Nyaa Alt links are not appearing without VPN. Nyaa links are throwing the error with VPN. Other links are working fine with VPN. So it's definitely an issue with the Nyaa links and not the VPN. The Nyaa links are playing fine with VPN but they are throwing the error at the start of playback and after that the progress is not recorded in Anilist. I'm out of ideas now. At least I can say that the issue is with Nyaa and not the VPN.

Thanks and Regards, ShibajiCh.

Goldenfreddy0703 commented 1 year ago

Ok Thats weird cause when i asked if you could open https://nyaa.iss.ink without the vpn, you said yes but apparently your isp is very strict, wait i should have asked this.

Did you reconfigure your debrid account and what is your debrid account? image

AakashC2020 commented 1 year ago

Hi @Goldenfreddy0703,

Yes, I uninstalled and reinstalled Otaku and then reconfigured Real Debrid. Still I'm not able to access the Nyaa Alt links without VPN, even though the site is opening without VPN. The Nyaa links are playing fine on VPN but the error is appearing at the beginning of every playback and the progress is not getting recorded in Anilist. For all other non-Nyaa links the progress is recording fine on Anilist while using VPN or not using VPN. In other add-ons like Seren and Fen the Nyaa links are opening fine without throwing any error.

Thanks and Regards, ShibajiCh.

Goldenfreddy0703 commented 1 year ago

OK well your VPN is weird tbh and im honestly confused, only thing i can think of at this point is either your kodi build or that there are some api's you can't access or something cause im generally confused. You said you tried all the troubleshooting steps, you cleared cache, cleared torrent cache rebuild database, reconfigured your debrid, re-authenticate your watchlist, enabled Nyaa Alt.

Ok my team is going to look into it but just incase one last thing to ask sense you get a playback error. Is your watchlist set to update anil;ist?

Goldenfreddy0703 commented 1 year ago

Wait a sec, does this happen with a specific anime or all anime?

joezito129 commented 1 year ago

it has to do with the audio lang. Eng and Jpn need to be lowercase

Goldenfreddy0703 commented 1 year ago

it has to do with the audio lang. Eng and Jpn need to be lowercase

I just noticed that and im dumb......and just tested 🙃

Goldenfreddy0703 commented 1 year ago

Welp ok i should have not capitalized eng in settings last time when i was doing some testing with the settings improvements and i feel dumb......

AakashC2020 commented 1 year ago

Okay, so are you going to fix it now? I can test. 🙂

Goldenfreddy0703 commented 1 year ago

Okay, so are you going to fix it now? I can test. 🙂

Yes i will defiantly fix cause i should have looked closer in your log then being way too blind to see it.

Goldenfreddy0703 commented 1 year ago

Im sorry for taking too much of your time, i will have that fixed right now.

AakashC2020 commented 1 year ago

Im sorry for taking too much of your time, i will have that fixed right now.

Hi @Goldenfreddy0703,

No problem..at least we found the issue. 🙂 Glad to help you. I too noticed the language error hence I sent you the piece of log separately, but since I'm not such a great Python expert so couldn't pinpoint the issue, but I have knowledge in other programming languages like PHP, so could guess that something fishy was going on with that part of the log. Thank you so much for finding the issue! I'll wait for the update.

Thanks and Regards, ShibajiCh.

Goldenfreddy0703 commented 1 year ago

Aghhhh i feel stupid, @joezito129 im sorry for pinging you but would you mind making a pr and fixing this for me. Your probably faster then me tbh. 😅

joezito129 commented 1 year ago

Ya, no problem

Goldenfreddy0703 commented 1 year ago

Hey so it should be released in a few min. Im going to close this issue but @ShibajiCh pls test for us and tell us if you receive any more errors.

Thank you

AakashC2020 commented 1 year ago

Hey so it should be released in a few min. Im going to close this issue but @ShibajiCh pls test for us and tell us if you receive any more errors.

Thank you

Hi @Goldenfreddy0703 and @joezito129,

Thank you both for the quick resolution! The error notification has been resolved after the language fix. Episodes and Movies are getting marked as watched on Anilist correctly. However, the Playing Next Dialog pop up window is still not appearing at the end of the video even if played from within the addon. Nevertheless, I guess that's another issue you can look into later on. Just wanted to let you know my observation.

Thanks and Regards, ShibajiCh.

Goldenfreddy0703 commented 1 year ago

Playing Next Dialog pop up window is still not appearing at the end of the video even if played from within the addon.

Did you by anychance use the context menu or play it normally.

AakashC2020 commented 1 year ago

Playing Next Dialog pop up window is still not appearing at the end of the video even if played from within the addon.

Did you by anychance use the context menu or play it normally.

I played it normally then fast forwarded upto a few mins before the end of the video to check, but the playing next dialog didn't appear.

joezito129 commented 1 year ago

in playing_next.py try changing line 81 to: if actionID in [92, 10]:

I think you are clicking on the screen when skipping forward which will close the dialog.

Gujal00 commented 1 year ago

The Next up dialog doesnt work correctly if you are using widgets as already reported in #29 . If you are playing from menus within the addon then it does show corrcectly as below screenshot00000

AakashC2020 commented 1 year ago

Hi @Goldenfreddy0703,

I'm playing the video from within the Otaku addon and not from widget. I changed the line 83 (not 81) in playing_next.py and checked. I also played the entire video from start to finish without forwarding or rewinding. However, still I'm not seeing the Playing Next Dialog pop-up anymore. Also, once the video stops playing, the next video doesn't auto play. Nevertheless, the already played video gets marked as watched in Anilist. This started happening after the recent updates. Earlier everything used to work fine. Will you reopen this ticket again and check? Please advise.

Thanks and Regards, ShibajiCh.

Goldenfreddy0703 commented 1 year ago

Tomorrow I will look at it but let me test just incase, can you tell me the anime and did you go to the watchlist?

AakashC2020 commented 1 year ago

Tomorrow I will look at it but let me test just incase, can you tell me the anime and did you go to the watchlist?

Hi @Goldenfreddy0703,

I played the videos from both inside Anilist Next Up as well as from within any TV Show Episodes list. I tested using several TV Shows. One of them is "Attack on Titan" Season 1. Kindly check and advise.

Thanks and Regards, ShibajiCh.

AakashC2020 commented 1 year ago

Hi @Goldenfreddy0703,

Did you get time to test this issue? Are you also facing the same problem?

Thanks and Regards, ShibajiCh.

AakashC2020 commented 1 year ago

Hi @Goldenfreddy0703,

Once you test this issue and if you face the same problem then could you please let me know if I should create a new ticket for this or if you're going to reopen this ticket only?

Thanks and Regards, ShibajiCh.

Goldenfreddy0703 commented 1 year ago

Ummm ok well do the troubleshooting steps again if you don't mind especially then try again and send me another log.

AakashC2020 commented 1 year ago

Ummm ok well do the troubleshooting steps again if you don't mind especially then try again and send me another log.

Hi @Goldenfreddy0703,

I did the troubleshooting steps again but the issue is still there. Neither I'm seeing the Playing Next Dialog not the Next Episode plays at the end. Please find attached my updated log:

https://paste.kodi.tv/xiholuveyi

Please check and advise.

Thanks and Regards, ShibajiCh.

Goldenfreddy0703 commented 1 year ago

Your using your vpn right????

AakashC2020 commented 1 year ago

Your using your vpn right????

Yes, I'm using the VPN.

AakashC2020 commented 1 year ago

Hi @Goldenfreddy0703,

I think the issue is here:

info : [plugin.video.themoviedb.helper] CACHE: Closed database_v6_TraktAPI.db_simplecache 2023-02-05 22:20:58.383 T:19569 error : GetItemsForPlayList: Unable to get playlist items for plugin://plugin.video.otaku/play/16498/3/ 2023-02-05 22:20:59.440 T:19569 info : Loading skin file: /storage/emulated/0/Android/data/net.kodinerds.maven.kodi20/files/.kodi/addons/plugin.video.otaku/resources/skins/Default/1080i/get_sources.xml, load type: LOAD_ON_GUI_INIT 2023-02-05 22:21:09.083 T:19569 info : Loading skin file: /storage/emulated/0/Android/data/net.kodinerds.maven.kodi20/files/.kodi/addons/plugin.video.otaku/resources/skins/Default/1080i/source_select.xml, load type: LOAD_ON_GUI_INIT 2023-02-05 22:21:10.734 T:19569 info : Loading skin file: /storage/emulated/0/Android/data/net.kodinerds.maven.kodi20/files/.kodi/addons/plugin.video.otaku/resources/skins/Default/1080i/resolver.xml, load type: LOAD_ON_GUI_INIT 2023-02-05 22:21:14.588 T:31589 error : EXCEPTION: array out of bound 2023-02-05 22:21:16.829 T:19569 info : VideoPlayer::OpenFile: plugin://plugin.video.otaku/play/16498/3/ 2023-02-05 22:21:16.833 T:31681 info : Creating InputStream 2023-02-05 22:21:16.911 T:31589 error : EXCEPTION: array out of bound 2023-02-05 22:21:18.104 T:31681 info : Creating Demuxer 2023-02-05 22:21:22.901 T:31681 info : Opening stream: 0 source: 256 2023-02-05 22:21:22.901 T:31681 info : Creating video codec with codec id: 173 2023-02-05 22:21:22.901 T:31681 info : CBitstreamConverter::Open bitstream to annexb init 2023-02-05 22:21:22.901 T:31681 info : CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.Nvidia.mp2.decoder 2023-02-05 22:21:22.902 T:31681 info : CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.Nvidia.wma.decoder 2023-02-05 22:21:22.902 T:31681 info : CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.Nvidia.h264.decode 2023-02-05 22:21:22.902 T:31681 info : CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.Nvidia.DOVI.decode 2023-02-05 22:21:22.902 T:31681 info : CDVDVideoCodecAndroidMediaCodec::Open Testing codec:OMX.Nvidia.h263.decode 2023-02-05 22:21:22.903 T:31681 info :

AakashC2020 commented 1 year ago

I think Otaku is not able to create the playlist, why might that be? Earlier it was working fine.

Goldenfreddy0703 commented 1 year ago

Ok im going to say this and im not trying to be rude but get a different vpn or fresh build of kodi at this point, Fix your Advanced Settings file, idk at this point.

You have like 485 errors where its got to be your vpn at this point or advanced settings file. Idk what isp you have but its strict like your internet and honestly idk what to do at this point. image

This log file is showing errors related to the Kodi media player software. The error messages are indicating that there are problems with loading images or media resources, either because the files cannot be found or because they cannot be opened. The log also shows that there are issues with retrieving directories or playlist items from certain plugins, such as the "otaku" video plugin. Additionally, there are warnings about deprecated usage of video properties and some other control-related errors.

AakashC2020 commented 1 year ago

@Goldenfreddy0703,

Okay, I played the video without VPN as well using non-Nyaa links but still it's not showing the Playing Next Dialog. Is the Playing Next Dialog working for you fine? I'm asking this because it was working for me perfectly even few days back on the same build. Something happened during the last few updates which stopped it from appearing.

Goldenfreddy0703 commented 1 year ago

Ok, personally i think all these errors are defiantly related to your advanced settings xml you have or it could be the kodi build itself that you are using.

The log shows that there were several errors encountered while the program was running.

"Image error: Could not open cached image --> [Errno 2] No such file or directory" - This error is indicating that the program is trying to access an image file at a specific location, but the file could not be found.

"DoWork - Direct texture file loading failed for resource://resource.images.studios.coloured/*" - This error is indicating that the program is trying to load an image, but the image file could not be found or loaded.

"GetDirectory - Error getting -" - This error is indicating that the program is trying to access a directory, but it could not be found or accessed.

"GetDirectory - Error getting plugin://" - This error is indicating that the program is trying to access a plugin directory, but it could not be found or accessed.

"CGUIMediaWindow::GetDirectory(...)" - This error is indicating that the program is trying to access a media window, but it could not be found or accessed.

"Control 501 in window 10025 has been asked to focus, but it can't" - This error is indicating that the program is trying to set the focus on a specific control, but it cannot be done.

"Setting most video properties through ListItem.setInfo() is deprecated and might be removed in future Kodi versions." - This warning message is indicating that a certain way of setting video properties is being deprecated and may not work in future releases.

"GetItemsForPlayList: Unable to get playlist items for plugin://" - This error is indicating that the program is trying to access a playlist item, but it could not be found or accessed.

These errors and warnings could be caused by a variety of factors, such as missing or corrupted files, incorrect file paths, or problems with plugins.

AakashC2020 commented 1 year ago

@Goldenfreddy0703,

Not sure why there are so many errors suddenly but everything else is working fine apart from the Playing Next Dialog.

Goldenfreddy0703 commented 1 year ago

Okay, I played the video without VPN as well using non-Nyaa links but still it's not showing the Playing Next Dialog. Is the Playing Next Dialog working for you fine? I'm asking this because it was working for me perfectly even few days back on the same build. Something happened during the last few updates which stopped it from appearing.

Everything has been working for me just fine and everything is straight forward, this is an issue on your end cause you are the only user that i have ever talked to who has these issues.