Giter Site home page Giter Site logo

i need some help about tvrename HOT 27 CLOSED

ste2w avatar ste2w commented on August 18, 2024
i need some help

from tvrename.

Comments (27)

ste2w avatar ste2w commented on August 18, 2024 1

Oh ok good to know! thank you for all your help I decided to close but hope ya have an awesome day man take care :)

from tvrename.

jasongdove avatar jasongdove commented on August 18, 2024

Yeah, the dependencies are kind of nuts - I only ever run it in docker since the dependencies are bundled. Are you able to run linux docker images on your Windows machine?

from tvrename.

ste2w avatar ste2w commented on August 18, 2024

honestly ive tried docker and i understand nothing of it i tried to set up one of those automatic rippers (automatic ripping machine) and i just for the life of me get anything in docker to run on my system lol i have no clue how to use it ive even tried plex in docker and couldnt get that working either but id definitely try again :) but im getting everything set back up and ill come back when i have docker installed and ill try it again id appreciate some pointers :)

EDIT ok so i got it building from the .zip i downloaded from here when its done how do i run it?? is it like this?

"docker --run tvrename rename "Path/to/tvshow/seasonXX"

"docker --run tvrename verify "Path/to/tvshow/seasonXX"

Sorry for the mass changes im just trying to learn all this stuff :)

from tvrename.

ste2w avatar ste2w commented on August 18, 2024

so i got it installed.. (I think) but when it loaded the name was none and it had like 138 vulnerabilities and when i tried adding a path to point the container where to go it gave me this error

Failed to run image. Error invoking remote method 'docker-run-container': Error: (HTTP code 400) unexpected - invalid reference format

im really confused it was goin so well lol

EDIT my computer just bsod on me so I'm goin to reinstall windows and start with a clean slate maybe that will make it easier xD

from tvrename.

jasongdove avatar jasongdove commented on August 18, 2024

Maybe follow this guide: https://learn.microsoft.com/en-us/virtualization/windowscontainers/quick-start/quick-start-windows-10-linux

from tvrename.

ste2w avatar ste2w commented on August 18, 2024

so i found your docker container on docker and im pulling now...so because im on windows 10 how do i point it to the folder to run? how does all that work do i have to add my files to the docker container itself or do i have to point to a folder on my windows 10 computer?

from tvrename.

jasongdove avatar jasongdove commented on August 18, 2024

I run it from linux, but the syntax is something like this

docker run --rm -v "/media/folder:/media/folder:rw" -v tvrenamecache:/cache jasongdove/tvrename:develop rename --imdb 1122334 "/media/folder/show name/season 01" --dry-run

You should only need to modify the /media/folder paths to point it to where your media lives, and find the appropriate imdb id instead of 1122334. If it looks like its going to rename things correctly, then you can remove --dry-run from the end.

from tvrename.

ste2w avatar ste2w commented on August 18, 2024

ok so i found said filesystem in subsystem for linux but it wont let me transfer any test files over it says i need permission yet im literally the only user on this computer any idea on what i should do??

from tvrename.

jasongdove avatar jasongdove commented on August 18, 2024

I don't think you need to run the docker command from wsl - it should also work in powershell or a command prompt using normal windows paths.

from tvrename.

ste2w avatar ste2w commented on August 18, 2024

So I want to make sure I understand then so in docker where would I put my windows file path to the folder? Or do I have to move my folder with my files INTO the media folder in my Ubuntu subsystem?

from tvrename.

ste2w avatar ste2w commented on August 18, 2024

C:\Users\MOVIE_ROOM>docker run -t jasongdove/tvrename:develop rename --imdb ######## "D:\tv__show\Path\to\tvshow\season_1"

i get this (Running from windows command prompt)

chown: cannot access '/cache': No such file or directory
groupmod: invalid group ID ''
usermod: invalid user ID ''
[22:08:39 FTL] Folder /app/D:\tv__show\path\to\tvshow\season_1 must be a directory

any ideas i have never gotten this far lol

And if I add a --mount before the path it's unrecognized

from tvrename.

ste2w avatar ste2w commented on August 18, 2024

ok so i re read what you had post and to replace the /media/folder and i did which looked like this

docker run --rm -v D:\tv__show\tvshow\season_1:D:\tv__show\tvshow\season_1:rw -v tvrenamecache:/cache jasongdove/tvrename:develop rename --imdb ######### "D:\tv__show\tvshow\season_1"

it gave me this

docker: Error response from daemon: mount denied:
the source path "D:\tv__show\tvshow\season_1:D:\tv__show\tvshow\season_1:rw"
too many colons.
See 'docker run --help'.

from tvrename.

jasongdove avatar jasongdove commented on August 18, 2024

Yeah it's definitely more complicated mixing windows and Linux paths. I'll test on windows in a bit and give a working example command.

from tvrename.

ste2w avatar ste2w commented on August 18, 2024

thank you id appreciate it im down to try anything at this point lol its just a matter of trial and error haha!

from tvrename.

jasongdove avatar jasongdove commented on August 18, 2024

Okay, this is kind of a mess on Windows, but I think I have it working.

First, you will want to run it from your WSL distro, not from cmd/powershell. So you will need to copy your media over. In this example I will use The Office (2005) Season 01:

mkdir /tmp/tv
cd /tmp/tv
cp -r /mnt/c/Media/Shows/The\ Office\ \(2005\) .
cd The\ Office\ \(2005\)/Season\ 01/
docker run -it --rm -e PUID=1000 -e PGID=1000 -v "/tmp/tv:/tmp/tv:rw" -v tvrenamecache:/cache jasongdove/tvrename:develop rename --imdb 0386676 "$(pwd)" --dry-run

A couple important points about the commands:

  • They all depend on a working root folder of /tmp/tv
  • You must cd into the Show/Season folder before running the docker command
  • The docker command will not need to be modified for different shows/seasons, since it uses $(pwd) which gets the current directory name

Hopefully that finally gets things going for you.

from tvrename.

ste2w avatar ste2w commented on August 18, 2024

ok so i did some test and im still getting this error when i run the docker command

"Folder /tmp/Media/Shows/The Office (2005) must be a directory"

since i for some reason cant add anything in the /mnt/c folder im the only account since im the one who set it up that confused me a bit but anyway so i moved it in the only folder i had access to /tmp/ and it still doesnt think its a directory and i copy and pasted exactly what you typed with the exception of /mnt/c/ since i cant use that one

EDIT so i was able to cd into the season 01 folder by removing the space and doin an underscore yet it still tells me that it "Must be a directory"

from tvrename.

jasongdove avatar jasongdove commented on August 18, 2024

You won't be able to add anything to /mnt/c as that's your C drive and linux seems to have issues writing to the Windows filesystem. I guess you're also using D, so it would be /mnt/d. Let me try to adjust the commands to what it might look like on your system based on your previous post:

mkdir /tmp/tv # do not change this line
cd /tmp/tv # do not change this line
cp -r /mnt/d/tv__show/tvshow . # this copies media from windows (d drive) to linux (under /tmp/tv)
cd tvshow/season_1
docker run -it --rm -e PUID=1000 -e PGID=1000 -v "/tmp/tv:/tmp/tv:rw" -v tvrenamecache:/cache jasongdove/tvrename:develop rename --imdb 0386676 "$(pwd)" --dry-run

The only thing you should have to change in the docker line is the imdb id.

from tvrename.

ste2w avatar ste2w commented on August 18, 2024

OH ok yeah that makes sense so when i do the 3 line

cp -r /mnt/d/tv__show/tvshow
it gives me this error
cp: missing destination file operand after '/mnt/d/tv__show/evrybdy_lives_ray'

i had to remove some letters but thats what it tells me when i do the full name

from tvrename.

jasongdove avatar jasongdove commented on August 18, 2024

There's a period at the end of the command which means the current directory.

cp -r /mnt/d/tv__show/tvshow .

from tvrename.

ste2w avatar ste2w commented on August 18, 2024

ok so i got it running! however it says
test 1 match failed confidence 31 is too low
test 2 match failed confidence 33 is too low
test 3 match failed confidence 33 is too low
rest 4 match failed confidence 33 is too low

from tvrename.

jasongdove avatar jasongdove commented on August 18, 2024

You can lower the required confidence by adding --confidence 30 to the command (for example).

from tvrename.

ste2w avatar ste2w commented on August 18, 2024

ok cool that worked so where do i find the renamed files??

from tvrename.

jasongdove avatar jasongdove commented on August 18, 2024

Remove --dry-run from the command if you want it to rename the files. Then you'll need to copy them back to windows. You may be able to open \\wsl$\Ubuntu in explorer, otherwise you will have to cd back into /mnt/d/whatever and copy the /tmp/tv files back that way.

from tvrename.

ste2w avatar ste2w commented on August 18, 2024

ok that about solves it thank you so much for your patience lol i did learn alot though lol and also one last question before i close does this work on episodes that are out of order like say title01 is episode 3 title07 is episode 2 type of situation will it fix that too?? also what about tv show discs that dont have subtitles will this also work?? just wondering :)

from tvrename.

jasongdove avatar jasongdove commented on August 18, 2024

Yes, the original filenames are irrelevant, it uses subtitles or (to address your second question) speech-to-text. I haven't used STT in a while, but it should work in the docker container for items that don't have subtitles. Note that this all assumes that open subtitles contains correct reference subtitles for comparison. If not, and you can find subtitles somewhere else, you can add them to the .tvrename/reference folder.

from tvrename.

ste2w avatar ste2w commented on August 18, 2024

So I've been running it over the weekend and this thing is amazing lol but I had another question Cause I ended up having to redo a few seasons and it said the file already existed so should I be clearing the cache folder after I'm done everytime?? And I have found that when I use the dvd srts (instead of 720p or 1080p) from subscene I started hitting confidences of 100 to so is open subtitles just using the wrong versions Like trying to match the hd version with the sd version and im thinkin the frame sync is different to some degree but I figured it wouldn't matter all much since its the same show just different format is that even possible?? Sorry if that was confusing lol

from tvrename.

jasongdove avatar jasongdove commented on August 18, 2024

should I be clearing the cache folder after I'm done everytime

No - the cache stores the extracted/generated subtitles for each processed video file. There won't ever be a conflict there, even if you have different versions of the same episode.

And I have found that when I use the dvd srts (instead of 720p or 1080p) from subscene I started hitting confidences of 100 to so is open subtitles just using the wrong versions Like trying to match the hd version with the sd version and im thinkin the frame sync is different to some degree but I figured it wouldn't matter all much since its the same show just different format is that even possible

I don't know where OpenSubtitles sources its subtitles. This project doesn't care about subtitle timing, it only looks at text. If you are getting 100% confidence, then someone likely uploaded subtitles from similar source material.

from tvrename.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.