Code Monkey home page Code Monkey logo

acids-sporttorrent-renamer's Introduction

Acids-SportTorrent-Renamer

GitHub all releases GitHub language count GitHub top language Bitbucket open issues GitHub forks GitHub Repo stars

Python script to rename SportTorrents files to TSDB naming convention to appease SportScanner Plex agent for proper metadata parsing

                                    **D i s c l a i m e r :**
- This script is not perfect. Im still working on the logic to get the matching more presice. But overall, it does a good job.
- Please double check your results and report back specific files that do not get named.

Requirments:

Python 3.0+

SETUP ENV:

  pip install csv

  pip install os

  pip install re

HOW TO:

  1. Download: https://github.com/AcidAlchamy/Acids-SportTorrent-Renamer/archive/refs/heads/main.zip
  2. Extract somewhere
  3. Update Renamer.py with your actual Paths set_dir
  4. Open Command Prompt (or equal..)
  5. Type: "cd {Location of Acids-SportTorrent-Renamer}"
  6. Type: "python Renamer.py"

--Script should now be trying to match & rename your files in video_dir to the data in csv_dir

TheSportDB offers 3 styles of naming conventions to work along Plex and Kodi. TSDB-naming-convention

The script can extract either of the 3 naming conventions. Simply edit the Renamer.py code and select your desired column to pull the new name from. 4  Plex_  5  Kodi_  6  Kodi 2

Request Data: To request .csv data for your specific desired league, please visit "https://thesportsdb.com/" and find your League, and send me a Pull Request with the League ID associated with the League. (i.e, https://thesportsdb.com/league/4380 - "4380" is the League ID for the NHL)

I will refresh the Data folder every few days.


Tools:

Organizer.py - I made this script with the aim of automatically moving/Organizing files that were freshly renamed. currently this script creates a folder for every league that TSDB covers...which...is 989 leagues or something... Please be prepared for that! OR edit the code in Organizer.py to only handle the Leagues you like.

Instructions:

  1. Edit the code in Organizer.py and highlight 'J:

Highlight_J

  1. Toggle Ctrl + H to "Replace"

Ctrl_H_to_Replace

  1. Write new desired Drive letter/location.

  2. Toggle Ctrl + Alt + Enter to Confirm replacement.

Ctrl_Alt_Enter_to_Confirm_Replace

  1. Your Code should be updated:

Your_new_File_location

For Sport Torrents, the most consistent naming convention to follow was provided by this twitter account @SportTorrents; this made the job of making a Renamer much "easier".

acids-sporttorrent-renamer's People

Contributors

acidalchamy avatar

Stargazers

 avatar  avatar Colin Sullender avatar  avatar  avatar

Watchers

 avatar

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.