Skip to content

Commit

Permalink
[MovieList] ignore jpg files
Browse files Browse the repository at this point in the history
  • Loading branch information
koivo committed Feb 5, 2025
1 parent 9f35a1d commit 6886ece
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/python/Components/MovieList.py
Original file line number Diff line number Diff line change
Expand Up @@ -649,8 +649,10 @@ def load(self, root, filter_tags):
self.list.append((serviceref, info, begin, -1))
numberOfDirs += 1
continue
# convert space-seperated list of tags into a set
this_tags = info.getInfoString(serviceref, iServiceInformation.sTags).split(' ')
if serviceref.getPath().endswith((".jpg",".JPG",".jpeg")): # Ignore all JPEG files as they are often added as movie posters but should not be listed as extra media.
continue
# Convert space-separated list of tags into a set.
this_tags = info.getInfoString(serviceref, iServiceInformation.sTags).split(" ")
name = info.getName(serviceref)

# OSX put a lot of stupid files ._* everywhere... we need to skip them
Expand Down

0 comments on commit 6886ece

Please sign in to comment.