Sperryfreak01 / RadarrSync

120 stars 46 forks source link

"ValueError: invalid literal for int() with base 10:" #29

Open akizzle opened 5 years ago

akizzle commented 5 years ago

Describe the bug A clear and concise description of what the bug is. Receiving "ValueError: invalid literal for int() with base 10: 'PROFILENAME'" when running RadarrSync.py

2018-10-13 20:59:36,223 [MainThread ] [INFO ] Starting new HTTP connection (1): 10.25.10.4 2018-10-13 20:59:36,958 [MainThread ] [INFO ] Starting new HTTP connection (1): 10.25.10.4 Traceback (most recent call last): File "RadarrSync.py", line 89, in if movie['profileId'] == int(ConfigSectionMap(server)['profile']):

To Reproduce Steps to reproduce the behavior: running the command python3 RadarrSync.py

Expected behavior A clear and concise description of what you expected to happen. Sync profile content between both Radarr instances.

Configuration Please attach your configuration file (Config.txt), remember to remove any personal information (api key especially if your radarr install is accessible from the web)

[Radarr] url = http://10.25.10.4:7878 key = APIKEY

[Radarr4k] url = http://10.25.10.4:7879 key = APIKEY profile = 1080P-UHD-REMUX-AA

Logs Please include a log of the issue happening. Delete the Output.txt file, run RadarrSync and attache the new Output.txt file.

2018-10-13 20:59:36,223 [MainThread ] [INFO ] Starting new HTTP connection (1): 10.25.10.4 2018-10-13 20:59:36,958 [MainThread ] [INFO ] Starting new HTTP connection (1): 10.25.10.4

BigBenM commented 5 years ago

for profile, it is expecting the profile ID not the name of the profile.