Open ysg23 opened 5 years ago
I too have this issue. Did you ever find a solution?
the profile needs to be an ID (numeric) not the name of the profile
That was not your issue. It would have been, the script was unable to find the config file [Radarr] section. I edited the script to this: LINE48
From: settingsFilename = os.path.join(os.getcwd(), 'Config.txt')
To: settingsFilename = 'C:\Automation\RadarrSync-master\Config.txt'
The join was not working, possibly a windows thing. Just pop in your path to the config file. Posting this to save someone else running around looking for the wrong thing.
Okay so I am retrying now .. running on Linux so I changed settingsFilename = 'Config.txt'
Unfortunately, now I get this error:
python RadarrSync.py
Traceback (most recent call last):
File "RadarrSync.py", line 5, in
If I change to import ConfigParser, I get this
python RadarrSync.py
Traceback (most recent call last):
File "RadarrSync.py", line 41, in
If I change it to Config = ConfigParser, I get this:
python RadarrSync.py
Traceback (most recent call last):
File "RadarrSync.py", line 49, in
Describe the bug Can't run the script
To Reproduce Edited the file, input my own radarr links, APIs and profiles
Expected behavior When I run Config.txt, I get the following
Traceback (most recent call last): File "RadarrSync.py", line 239, in syncServer['url'] = ConfigSectionMap(syncServer['name'])['url'] KeyError: 'url'
However if I rename to DevConfig.txt, I get the following
Traceback (most recent call last):
File "RadarrSync.py", line 51, in
radarr_url = ConfigSectionMap("Radarr")['url']
File "RadarrSync.py", line 29, in ConfigSectionMap
options = Config.options(section)
File "/usr/lib/python3.6/configparser.py", line 675, in options
raise NoSectionError(section) from None
configparser.NoSectionError: No section: 'Radarr'
Configuration [General]
[Radarr] url = https://radarr.mydomain.ca profile = HD
[Radarr4k] url = https://radarr4k.mydomain.ca destination_profile = UltraHD
Logs Output.txt is empty if I run DevConfig.txt or run it as Config.txt