2021-05-16, 14:51
@Milhouse: Thanks for this tool, very useful!
I am trying to remove all titles from my library that don't have files (any more). Someone told me to check out texturecache.py, and it's indeed very cool and very powerful.
However, I still haven't figured out how to achieve my task.
I can find a lot of duplicates, like this example:
The example directory only contains one file:
The options/parameter proposed in the other thread are not limited to "no media file exists (any more)", because it finds both:
This is the library query output for this movie title:
My question is: How can I
Thanks, and keep up the good work!
I am trying to remove all titles from my library that don't have files (any more). Someone told me to check out texturecache.py, and it's indeed very cool and very powerful.
However, I still haven't figured out how to achieve my task.
I can find a lot of duplicates, like this example:
python:
texturecache.py duplicates
<snip>
IMDb Number: tt0028420
Title: Circus
Movie ID: 2477
Playcount: 0
Last Played:
Date Added: 2019-08-10 20:08:26
File: /mnt/unwatched/Tsirk AKA Circus (1936) RUS/Tsirk (1936) Grigori Aleksandrov, Isidor Simkov.mkv
Title: Circus
Movie ID: 3262
Playcount: 0
Last Played:
Date Added: 2021-02-15 14:43:42
File: /mnt/unwatched/Tsirk AKA Circus (1936) RUS/Tsirk.AKA.Circus.1936.720p.BluRay.AC3.x264-trand.mkv
</snip>
The example directory only contains one file:
python:
ls -1 /mnt/unwatched/Tsirk\ AKA\ Circus\ \(1936\)\ RUS
Tsirk.AKA.Circus.1936.720p.BluRay.AC3.x264-trand.mkv
The options/parameter proposed in the other thread are not limited to "no media file exists (any more)", because it finds both:
python:
texturecache.py qa movies @qafile=yes @qaperiod=9999 @qa.art.movies=
<snip>
Movie [Circus ]: FAIL (missing mpaa)
Movie [Circus ]: FAIL (missing mpaa)
</snip>
This is the library query output for this movie title:
json:
texturecache.py jd movies "Circus"
[
{
"art": {
"fanart": "image:///home/osmc/kodi_videodb_2020-10-24/movies/Circus_1936-fanart.jpg/",
"poster": "image:///home/osmc/kodi_videodb_2020-10-24/movies/Circus_1936-poster.jpg/"
},
"file": "/mnt/unwatched/Tsirk AKA Circus (1936) RUS/Tsirk (1936) Grigori Aleksandrov, Isidor Simkov.mkv",
"label": "Circus",
"movieid": 2477,
"title": "Circus"
},
{
"art": {
"fanart": "image://https://image.tmdb.org/t/p/original/zHP6spV7YnF2Kp2Q2II6n6fMbEa.jpg/",
"poster": "image://https://image.tmdb.org/t/p/original/s9XtFmpePkL6zWJ7wvI3fq82Phf.jpg/"
},
"file": "/mnt/unwatched/Tsirk AKA Circus (1936) RUS/Tsirk.AKA.Circus.1936.720p.BluRay.AC3.x264-trand.mkv",
"label": "Circus",
"movieid": 3262,
"title": "Circus"
}
]
My question is: How can I
- find/list all movies without files (like #2477)
- remove these movies from the library
Thanks, and keep up the good work!