mueslimak3r / tv-intro-detection

This project tries to detect intros of tv series by comparing pairs of episodes to find the largest common subset of frames.
https://mueslimak3r.github.io/tv-intro-detection/
GNU General Public License v3.0
81 stars 3 forks source link

Windows Filesystem fix for Windows WSL Setup #9

Closed DevilsDesigns closed 2 years ago

DevilsDesigns commented 2 years ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. pip install -r requirments.txt inside wsl2 Ubuntu 20.04
  2. edit the config in C:\Tools\tv-intro-detection\config\path_map.txt to show /mnt/j/TV-Shows : /mnt/m/TV-Shows
  3. export JELLYFIN_URL="http://192.168.1.111:8096" && export JELLYFIN_USERNAME="username" && export JELLYFIN_PASSWORD="mypassword"
  4. python3 jellyfin.py -j -d -l

Expected behavior Runs through all tv shows in the directories specified in path_map.txt

Additional context Errors on read because of windows Filesystems

63/190 - Blue's Clues
1/5 - Season 1 - 2 episodes
started at 2022-04-04 21:01:55.434579
Check Frame: 10

input files invalid or cannot be accessed
no results - the decoder may not have access to the specified media files
processed season [Season 1] in 0:00:00.016687
Received signal: 2
will stop
processed show [Blue's Clues] in 0:00:02.024777
total runtime: 0:05:49.727606
mueslimak3r commented 2 years ago

Runs through all tv shows in the directories specified in path_map.txt

As explained on matrix, path_map isn't used to define a list of directories to search in.

It says "given mapping x:y rename y to x" this way if according to jellyfin the file is at y/subdirectory/file.mp4 but the script would find it at x/subdirectory/file.mp4 it can translate those paths

That doesn't discount the point of this issue, just clarifies things.

I will run tests on windows and make the necessary changes.

mueslimak3r commented 2 years ago

Tested and working with powershell (no wsl needed but it should work). I installed ffmpeg and the latest python version for testing.

The format of path_map.txt has changed so check the readme

DevilsDesigns commented 2 years ago

thank you for the fast response and work you rock!