Posts: 10
Joined: Oct 2015
Reputation:
0
No. It's actually just playing any stream file first thing. I will then get this error file not found. However when I go back to browse any directory and try the stream file again all is well.
I also see the issue sometimes if I just sit in Kodi for a while. I will have to go back to browse a directory and then try the stream again.
I tried the testing stream but it behaves exactly the same way. I get this error and then Kodi says it can't find the next file to play.
If it's helpful, I'm using the SSL Script login type to authenticate.
Posts: 10
Joined: Oct 2015
Reputation:
0
I noticed the automatic update to this version. Unfortunately it still doesn't fix my issue. I don't understand why this is happening. I tried another kodi which is 14.2 and it also has the same problem. If I'm only getting this problem then it's something account specific. I send you crash log 570 but I checked the log and it's the same as the snippet I posted.
Any ideas? Not sure if it is related but it never resumes where I left off and it's not flagging watched videos either.
Posts: 10
Joined: Oct 2015
Reputation:
0
Yes. I tried turning it off but same thing. Video won't play unless I browse directory. I also notice another thing. After about an hour if I stop or rewind playback fails until I browse directory. So I can only get an hours worth of playback before I have to "reset" by directory browsing. Any other ideas?
Posts: 10
Joined: Oct 2015
Reputation:
0
So I managed to install debugging on one of my PC's and I was able to track down the issue. For whatever reason OneDrive is throwing a 404 error not 403 or 401 as you are expecting.
I updated onedrive_api.py and replaced every case of the following:
if e.code == 403 or e.code == 401
with
if e.code == 403 or e.code == 401 or e.code == 404
I'm still testing to see if there are any knock on effects, but seems this solved the problem.
Posts: 10
Joined: Oct 2015
Reputation:
0
Thanks for the explanation, very helpful. I see your point about sqllite. That is exactly what 1channel uses.
There might be a discrepancy in how OneDrive deals with the direct links versus when you are browsing hence the 404. My use case is to have all my videos in the library and never to browse the OneDrive directory. Perhaps that link is tied to the token so when token expires the link rego runs 404. Another thought is to refresh the tokem on a timer while Kodi is running. That would be a sure fire way to keep everything working.
Along your line of storing metadata OneDrive does support description and comments. Storing metadata in file description maybe a bit too intrusive however maybe storing it in comments is an alternative. You should be able to create and delete comments at will. Just a thought. We shouldn't be sharing our videos anyhow so some cryptic comments should be fine.
Posts: 10
Joined: Oct 2015
Reputation:
0
Perhaps SQLLite might be the only surefire way for this. Even though it may not work on slow devices it would work for some machines so it is better than nothing. At least it is well understood with other plugin's, so it should be easy to implement as an option.
So I've been playing OneDrive content now for a couple of hours. No issue with 404 and it works flawless. With media items in the library I can finally hand this off to less technical family members. I've been waiting a long time for this! Now I can have 1TB+ of content on Android TV.
On a side note I've been trying to import STRM music into Kodi library and it is a mess. Kodi won't do it, even though I have proper .NFO files. What is even more perplexing is if I mock up a .MP3 file and configure Kodi to only scan .NFO files, it still insists on scanning tags. I don't get it. Since I have a version of my library not in OneDrive, I tested the scenario of scanning them into the library and then manipulating the music library to point path and song filenames to the .STRM versions. Surprisingly this worked. Songs are in the library with artwork, information, and streaming from OneDrive.
What about creating a script to pull out music information, change extensions and paths, and merge into new database? This means one could update their master library as required and then update the clients with the music data but instead of .MP3 files it will be STRM files. I think this is doable and I think I'll pursue this (and learn Python along the way). It adds an extra complication but the end result is what I'm looking for; fully tagged streaming media in the Kodi library.
Posts: 1
Joined: Apr 2016
Reputation:
0
i can not add my one drive video files to my kodi library.
i click on add to library(export.strm) and plugin ask me for Video Library Export Folder....
i tried to link them to my NAS but it does not work.... A valid folder is required...
What i am doing wrong?
sorry about my english....