{"id":17197242,"url":"https://github.com/majora2007/py-renamer","last_synced_at":"2025-04-13T20:51:03.377Z","repository":{"id":50243044,"uuid":"220072860","full_name":"majora2007/py-renamer","owner":"majora2007","description":"This program is written to rename TV Series filenames to match what Plex or Sonarr needs to properly match. Often times many airings or downloads will not properly match the metadata ordering. This program remedies that by reading the filenames and remapping them into the standard format. This does it purely by Season and Episode numbers rather than attempting to match with a metadata provider.","archived":false,"fork":false,"pushed_at":"2021-06-04T23:57:43.000Z","size":49,"stargazers_count":13,"open_issues_count":7,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-27T11:13:15.598Z","etag":null,"topics":["automation","plex-media-server","python","sonarr"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/majora2007.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-06T19:23:03.000Z","updated_at":"2024-11-21T22:24:19.000Z","dependencies_parsed_at":"2022-09-01T13:10:25.569Z","dependency_job_id":null,"html_url":"https://github.com/majora2007/py-renamer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/majora2007%2Fpy-renamer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/majora2007%2Fpy-renamer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/majora2007%2Fpy-renamer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/majora2007%2Fpy-renamer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/majora2007","download_url":"https://codeload.github.com/majora2007/py-renamer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248782278,"owners_count":21160716,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","plex-media-server","python","sonarr"],"created_at":"2024-10-15T01:55:53.618Z","updated_at":"2025-04-13T20:51:03.356Z","avatar_url":"https://github.com/majora2007.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PyRenamer\nThis program is written to rename TV Series filenames to match what Plex or Sonarr needs to properly match. Often times many airings or downloads will not properly match the metadata ordering. This program remidies that by reading the filenames and remapping them into the standard format. This does it purely by Season and Episode numbers rather than attempting to match with a metadata provider.\n\n# How to install\nDownload this from git and place somewhere on your computer. Put that location in PATH variable so you can execute from any directory.\n\n# How to run\n`python rename.py --show_name \"My show here\"`\nThis is the minimum required command to execute. You can get more commands from the rename.py file.\n\n# Arguments\n|   Argument Name\t|   Required\t|   Description\t|   Argument Type\t|   Notes\t|\n|---\t            |---\t        |---\t        |---\t        |---\t    |\n|   show_name  \t    |   ✓\t        |   \tThe name of the show. This does not perform parsing, just blinding pastes it. Can be used to transfer quality info if not in the filename.        |   \t String       |   \t    |\n|   season\t        |   x\t        |   \tForces the season, will ignore what the parser says        |   \t   Number     |   \t    |\n|   eps_per_file\t|   x\t        |   \tIf a file has multiple episodes, this will generate multiple episodes per file.         |   \t  Number      |   \tShow - ep1a - ep1b -\u003e Show - S01E01-E02    |\n|   dry\t|   x\t        |   \tUsed to preview the changes without modifying files on disk         |   \t  None      |   \tJust supply the flag    |\n|   verbose\t|   x\t        |   \tPrint debug information         |   \t  None      |   \tJust supply the flag    |\n|   season_maps\t|   x\t        |   \tMaps ordered episodes into Seasons. Useful for absolute to seasons         |   \t  Array of Numbers      |   \tie) [1, 2]. First episode goes to Season 1, next 2 episodes goes to Season 2    |\n|   anime\t|   x\t        |   \tUse anime parsing and renaming rules. Will generate Media Info and Hash and keep scene group         |   \t  None      |   \tDoes not work with eps_per_file    |\n|   manga\t|   x\t        |   \tUse manga parsing and renaming rules. Will generate Series Name - Volume XX Chapter XX        |   \t  None      |   \tDoes not work with eps_per_file, works with season_maps    |\n|   offset\t|   x\t        |   \tIf passed, episodes will start at the offset         |   \t  Number      |   \tie) episode 1 with offset of 4 writes as episode 5. Useful for combining seasons together. Does not work with season maps.    |\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmajora2007%2Fpy-renamer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmajora2007%2Fpy-renamer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmajora2007%2Fpy-renamer/lists"}