Plex Watched Tools.
Exports/Imports the following info for TV & Movie & Audiobook (using the Audnexus Agent) Libraries:
- Watched Status
- View Count
- User Rating
Pending Items:
- Playlists (pushingkarmaorg/python-plexapi#551)
- Plex with all libraries using the new TV & Movie agents (Only for Import. Export supports both Old & New Agents)
- PlexAPI == 4.7.2 (Install/Update via:
python3 -m pip install --force -U PlexAPI==4.7.2) - Diskcache == 5.3.0 (Install/Update via
python3 -m pip install --force -U diskcache==5.3.0) - Python >= 3.8
-
Copy the included
sample.initosync.iniand update the following variables:src_urlsrc_tokendst_urldst_tokencheck_users(If you want to export/import only specific users)watched_history(If you want to specify a custom location/file)use_cache(Only set it totrueif you are exporting/importing more than a handful of users)cache_dir(OPTIONAL)plex_sections(OPTIONAL) (If you want to export/import only specific libraries)max_processes(OPTIONAL) (If you want to increase the number of processes used for exporting/importing)
-
Example value of
check_users:"abc,xyz,def"(These must be the usernames of the required users. The matching is case-insensitive.) -
Export Watched History for Server:
PLEXAPI_CONFIG_PATH="<path_to_sync.ini>" python3 plex_export_watched_history.py -
Import Watched History for Server:
PLEXAPI_CONFIG_PATH="<path_to_sync.ini>" python3 plex_import_watched_history.py
-
Set
debugtotrueinsync.ini -
Adjust the log file locations:
export_log_fileimport_log_file
-
Default log files:
- plex-export-watched-history.log
- plex-import-watched-history.log