Comments (2)
So you have too many arguments being passed. From the looks of it you have {session_key}, {show_name}, {episode_num00}, and {season_num00}. This script is only expecting 3 and in a specific order. When you start adding more custom scripts to PlexPy v1 that require specific arguments it can start to get messy. So because you'll want to keep the {session_key} for another script you should be able to just increase the sys.argv element by 1 for this script.
So change:
show_name = sys.argv[1]
next_ep_num = int(sys.argv[2])
season_num = int(sys.argv[3])
to
show_name = sys.argv[2]
next_ep_num = int(sys.argv[3])
season_num = int(sys.argv[4])
or
session_key= sys.argv[1]
show_name = sys.argv[2]
next_ep_num = int(sys.argv[3])
season_num = int(sys.argv[4])
In PlexPy v2 each notification can receive it's own arguments which eliminates this problem and makes me reluctant to change my scripts. Another way for allowing multiple scripts to pull different arguments is to pull all the args you need for every script you have. So if you need x and y for one script and y, z, and h for another, then you'd want to have x, y, z, and h pulled for every script.
Check out these two scripts. 1 and 2. They both pull the same args but only use the args that they need. Hope that helps.
from jbops.
@blacktwin this makes sense! So do i need to put all of those arguments in the script filed in PlexPY?
from jbops.
Related Issues (20)
- kill_stream.py "ModuleNotFoundError:No Module named 'requests'" HOT 1
- hide_episode_spoilers.py Issue HOT 1
- The first line of the summary is still shown in PLEX TV app HOT 1
- Request: Support pulling posters that have identical filenames
- Sync_watch_status =/= Plex token HOT 8
- hide_episode_spoilers.py - blur not removed HOT 1
- [Bug] Same server never evaluates to `true` in Sync Watch Status script HOT 1
- Send email to removed users
- Issue with find_unwatched.py deleting new content HOT 1
- Issue - merge_multiepisodes.py not allowing --composite_thumb HOT 1
- FileNotFoundError: [Errno 2] No such file or directory when Plex server runs on docker HOT 2
- Request - Better combine the episode names for multi-part episodes
- Failed to access uri endpoint for delete_watched_tv script HOT 1
- Plex Poster Pull - Cannot seem to authenticate
- [Issue] Tautulli NotificationHandler :: {1} media_type | is | 'show or season or episode' > 'episode' > False
- Request [Feature Request] hide also episode title for hide_episode_spoilers.py
- Migrate Transcodes to Backup Server HOT 2
- Sync Watch Status Auth Error HOT 2
- Request improvement of utility/delete_watched_TV.py
- Request dovi profile killswitch
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jbops.