Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to add movies #559

Open
grover77 opened this issue Jul 9, 2023 · 1 comment
Open

Unable to add movies #559

grover77 opened this issue Jul 9, 2023 · 1 comment
Labels
S-needs-triage Status: Needs triage T-bug Something isn't working the way it is supposed to

Comments

@grover77
Copy link

grover77 commented Jul 9, 2023

I have had a tolerate but hate relationship with Kodi for a decade. Kodi has more bugs than an ant farm and has major issues with the amount of media I have. It's really nice to see an alternative written in Rust.

Describe the bug
Unable to figure out how to index movies.

My movies are in a one directory per movie format, shared via NFS 4.2 from FreeBSD/ZFS. From inside the docker container:

root@8fd39c7ce491:/opt/dim# ls -l /movie | head -n5
total 270787
drwxr-xr-x 2 1000 1000 12 Feb 12 10:18 #Alive (2020) 1080p
drwxrwxr-x 2 1000 1000 12 Feb 12 10:18 #realityhigh (2017) 1080p
drwxr-xr-x 2 1000 1000  8 Jun 22  2021 $ (1971) 1080p
drwxr-xr-x 2 1000 1000 15 Aug 17 01:45 '71 (2014) 1080p

The UI says "Your libraries are empty", and I click the Add another library button link. A modal pops up. I put Movie in the Name box, leave type on Movies. Below that it shows Currently in: /. I click the box to the left of movie (/movie) but the "Add library" button link has a circle with line through it. If I click movie (/movie), I get Currently in /movie with Cannot load data which goes away after a bit and shows the movie directories, and the "Add library" button is still not available. If I click the checkbox on one of the movies (I think it's struggling to load all the movies) I can click "Add library", but it just closes out the modal and that movie is not anywhere. If I click "Select all", I have to wait a minute or two, but "add library" is still greyed out after the yellow checks appear to the left of my movie folders. The directory list is super slow and klunky, not really usable even if I could figure out how it works.

I figured out if a wait a few minutes, I can select a few, ie some moves that start with 10. and it will add them. Even so adding these I get at the top:

1 Unmatched files found
10 Tricks.mkv

with select media type "Movies/Shows" to the right.

movie-clone ls -l 10\ Tricks\ \(2022\)\ 1080p         
total 1429136
-rw-r--r--  1 grov  grov  1462715338 Dec  4  2022 10 Tricks.mkv
-rw-r--r--  1 grov  grov        4534 Jul  7 14:36 10 Tricks.nfo
-rw-r--r--  1 grov  grov         338 Jan 24 18:43 10 Tricks.yaml
-rw-r--r--  1 grov  grov      106834 Dec  4  2022 fanart.jpg
-rw-r--r--  1 grov  grov       72097 Dec  4  2022 fanart2.jpg
-rw-r--r--  1 grov  grov       76085 Dec  4  2022 fanart3.jpg
-rw-r--r--  1 grov  grov       55215 Dec  4  2022 fanart4.jpg
-rw-r--r--  1 grov  grov       84044 Dec  4  2022 fanart5.jpg
-rw-r--r--  1 grov  grov      407193 Dec  4  2022 poster.jpg

cat 10\ Tricks\ \(2022\)\ 1080p/10\ Tricks.nfo | grep '<title>\|year\|plot'
  <title>10 Tricks</title>
  <year>2022</year>
  <plot>In one night, a madam at a brothel makes plans to get pregnant, while a magician working across the street makes a drastic move to change his life.</plot>

Why would 10 Tricks not be identified when it has a nfo file and was added as a movie?

What would be the correct way to add all of "/movies"? When new movies are added, what is the re-scanning process?

Any chance of replacing SQLite with a centralized MySQL or Redis and using web-assembly to speed up the DB and UI? One of the features of Kodi I need is the centralized database as I have multiple locations to watch shows.

Device and browser including versions:
12 Core AMD 128GB RAM 24GB VRAM Arch Linux
Linux [hostname] 6.3.9-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 21 Jun 2023 20:46:20 +0000 x86_64 GNU/Linux
Firefox 114.0.2 (64-bit)

@grover77 grover77 added S-needs-triage Status: Needs triage T-bug Something isn't working the way it is supposed to labels Jul 9, 2023
@vgarleanu
Copy link
Member

The issue here is that for some reason indexing doesn't work very well for network mounts. The problem is probably nfs being very slow with random concurrent reads.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-needs-triage Status: Needs triage T-bug Something isn't working the way it is supposed to
Projects
None yet
Development

No branches or pull requests

2 participants