{"id":31884322,"url":"https://github.com/ekriirke/plex","last_synced_at":"2025-10-13T03:57:45.398Z","repository":{"id":312557896,"uuid":"1047872260","full_name":"EkriirkE/Plex","owner":"EkriirkE","description":"Plex Media Server Scripts","archived":false,"fork":false,"pushed_at":"2025-09-27T23:26:54.000Z","size":49,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-28T00:20:02.142Z","etag":null,"topics":["plex","plex-library","plex-media-server","plex-server","plexmediaserver"],"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/EkriirkE.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-08-31T12:31:36.000Z","updated_at":"2025-09-27T23:26:57.000Z","dependencies_parsed_at":"2025-08-31T15:27:52.001Z","dependency_job_id":"9e0f03d5-88af-4f91-9cb8-b76ddea66d9b","html_url":"https://github.com/EkriirkE/Plex","commit_stats":null,"previous_names":["ekriirke/plex"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/EkriirkE/Plex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EkriirkE%2FPlex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EkriirkE%2FPlex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EkriirkE%2FPlex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EkriirkE%2FPlex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EkriirkE","download_url":"https://codeload.github.com/EkriirkE/Plex/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EkriirkE%2FPlex/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279013508,"owners_count":26085369,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["plex","plex-library","plex-media-server","plex-server","plexmediaserver"],"created_at":"2025-10-13T03:57:43.451Z","updated_at":"2025-10-13T03:57:45.386Z","avatar_url":"https://github.com/EkriirkE.png","language":"Python","readme":"# Plex\nPlex Media Server Scripts\n\nStop the plexmediaserver service and back up the database files before making modifications.\n\nWhile in the plexmediaserver folder, where the program `Plex SQLite` lives....\n\n### update.sh\nCheck for, and download, the most recent version of aacrch64 plexmediaserver.  \nAutomatically installs if a new version is downloaded, and cleans up prior downloads.  If you remove the most recent .deb the script will always dowload and install regrless of version.  \nNote that I do not use Debian, but `dpkg` is available on ArchLinuxARM and PMS has always worked great on it.\n\n### datemedia.py\nUpdate the \"Date Added\" in Plex to match the modification date of the source media - only if it is older.  \nSometimes reorganizing your media folders causes Plex to detect (old) media as a new addition and sort it accordingly.  I don't like old media showing up in recommended as \"new\".  \nIf the file is newer that the original added date and it get updated, the best you can with this script is to \"touch\" the media file(s) with the expected dates before running this script.  \nProtip:  An in-place file replacement is usually ignored by Plex, so avoid moving or renaming old media if replacing it with a better copy (of the exact same name and extension).  \n\n### itunes2plex.py\nExtract song ratings, play counts, and last play date from iTunes Library.xml and insert/sync it with Plex.\nEither filter a PlexAcctName to apply the stats to a single profile, or blank for all profiles in your account.\nOutputs SQLite commands to STDOUT, redirect\u003eto a file and import using Plex SQLite\n\n---\n\n### Manual SQL stuff\n\nEnter the Plex SQL Environment via\n```shell\n./Plex\\ SQLite \"Library/Application Support/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db\"\n```\n\n#### Move library location, and its contents, from `/media/OldPath` to `/media/NewLocation`\n```sql\n-- Library location\nUPDATE section_locations SET root_path='/media/NewLocation' WHERE root_path='/media/OldPath';\n-- Library contents' locations\nUPDATE media_parts SET file=REPLACE(file,'/media/OldPath/','/media/NewLocation/') WHERE file LIKE '/media/OldPath/%';\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fekriirke%2Fplex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fekriirke%2Fplex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fekriirke%2Fplex/lists"}