How to update video path in library db?
#1
I'm making a script that moves videos (movies) from one folder to another, after it has ended playing.
But now I dont have a clue on how to update its path, so it stays in library.

I dont want to clean/scan because it would lose (i think) watched status and other details changed by user.

Btw, I'm using xbmc.Player.getPlayingFile() to know witch movie is, dont know if there are better solutions...


Thank you and I'm sorry if my English is not ok.
Reply
#2
Anyone? :/

Update movie path with json, is it possible?
Reply
#3
It doesn't say it in the docs, but would VideoLibrary.SetMovieDetails work? Video.Details.Movie extends Video.Details.File which has a file field.

Give it a go, I don't know it might work.
Reply
#4
Thanks for your help.

I think I tried that, but will try again tomorrow to be sure.

The workaround I found was to update lib (to add), clean lib (to remove), and then search in lib for the new file by path.

Also I found that manual removing movies (json) is not reliable, the path still exists in database...
Reply
#5
Doesnt work.
I supose only these will work:
http://wiki.xbmc.org/index.php?title=JSO...vieDetails
Reply

Logout Mark Read Team Forum Stats Members Help
How to update video path in library db?0