A Java GUI utility to rename TV episodes from TV listings
Java Shell
Latest commit 1479035 Nov 3, 2016 @vipuldelwadia vipuldelwadia committed on GitHub Merge pull request #128 from johnv02139/whitespace
Eliminate whitespace at the end of lines.

README.md

TVRenamer

Build Status

About

TVRenamer is a Java GUI utility to rename TV episodes from TV listings
It will take an ugly filename like Lost.S06E05.DD51.720p.WEB-DL.AVC-FUSiON.mkv and rename it to Lost [6x05] Lighthouse.mkv

Screenshot

Screenshot

Connectivity Issues

If you are receiving errors about "unable to connect to internet" please download version 0.7.2. Note that Java 7 is required.

Features

  • Rename many different shows at once from information from TheTVDB
  • Customise the format and content of the resulting filename
  • Native look & feel for your operating system
  • Drag & Drop or standard 'add file' interface
  • Optionally move renamed files, i.e. a NAS or external HDD

Usage & Download

Download the correct version for your operating system (OSX, Windows, Linux) and architecture (32 or 64 bit)

  • On Windows:
    1. Unzip the downloaded file somewhere, possibly your Desktop or C:\Program Files
    2. Double click the .exe file
  • On OSX:
    1. Unzip the downloaded file somewhere, possibly your Desktop or /Applications
    2. Double click the .app file
  • On Linux:
    1. Unzip the downloaded file somewhere, possibly your Desktop
    2. It is easiest to add TVRenamer to the top Gnome bar (no need for the terminal). Add a 'Custom Application Launcher' with the below settings:
      Type: Application
      Name: TVRenamer
      Command: <location of unzipped file from (1.)>/TVRenamer-<version>/run-linux.sh
      Icon: Can be anything, perhaps our icon
      If the application doesn't start, or if you have problems switch the Type to be 'Application in Terminal'
    3. If you don't add it to the Gnome bar, open an terminal and cd to where you unzipped the file to. Then cd into the TVRenamer-<version> folder. There should be run-linux.sh and tvrenamer.jar file there.
    4. Execute the run script via ./run-linux.sh

Common Problems

Java version issues

Java version 7 is required.. Type java -version into your terminal and ensure that the output is similar to:

$ java -version
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)

x86/ 64 bit architecture version

Ensure that you are running the same architecture of TVRenamer as Java. java -version displays the version on the last line, as above. If you don't have it right, you get an unhelpful error message on startup (when running on the terminal), like below: Exception in thread "main" java.lang.UnsatisfiedLinkError: Cannot load 32-bit SWT libraries on 64-bit JVM

"TVRenamer can't be opened because it's from an unidentified developer" error message on OSX Mountain Lion or above.

This is because we have not signed the application with Apple (and because we use Java, they won't allow us to). To get around this, just right-click the app in Finder and select Open. You only need to do this once.
More information from iMore

Running in debug mode

If the application crashes it helps us greatly if you can provide us a stacktrace of what went wrong. In order to do this, you just need to run the application in the terminal, then copy the output into a new bug report.

If the application doesn't start with a java error, ensure that your JAVA_HOME environment variable is set correctly.

  • On Windows:
    1. Open the Windows Command Prompt (Windows + r, then type cmd and push enter)
    2. Navigate to where the TVRenamer application is.
    3. Execute java -jar TVRenamer-<version>.exe
  • On OSX:
    1. Open the Terminal application (at /Applications/Utilities/Terminal.app)
    2. Navigate to where the TVRenamer application is.
    3. Execute it via ./TVRenamer-<version>.app/Contents/MacOS/run-mac.sh
  • On Linux:
    1. Open the Terminal application (from the Gnome Applications menu)
    2. Navigate to where the TVRenamer application is.
    3. Execute the run script via ./TVRenamer-<version>/run-linux.sh

Contributions

The development team is just a couple of blokes, so anything from Java code patches to UI/UX recommendations would be gratefully received.

To contribute to the code side of things you should know Java and it would be helpful if you know some SWT and git. The easiest way to submit changes is via a guthub pull request based off the master branch.

For anything else (feature requests, comments, fanmail!), create a new issue and set the label to 'Type-Enhancement'.