Skip to content

Changes how root_folder_path option is setup#2046

Merged
liiight merged 1 commit intoFlexget:developfrom
JourneyOver:sonarr_list_rfp
Dec 20, 2017
Merged

Changes how root_folder_path option is setup#2046
liiight merged 1 commit intoFlexget:developfrom
JourneyOver:sonarr_list_rfp

Conversation

@JourneyOver
Copy link
Copy Markdown
Contributor

@JourneyOver JourneyOver commented Dec 20, 2017

Motivation for changes:

None really lol

Detailed changes:

  • Changes how root_folder_path config option is setup. Now uses string value instead of an integer. Defaults to using an integer if no value is passed in config.
  • Removed comments on old root_folder_path setup.

~ Changes how root_folder_path config option is setup. Now uses string value instead of an integer. Defaults to using an integer if no value is passed in config.

- Removed comments on old root_folder_path setup.
# takes root_folder_path ID from config and subtracts 1 from it due to how script is setup
# since users are passing actual ID it won't be confusing to users
show['rootFolderPath'] = rootfolder[self.config.get('root_folder_path') - 1]['path']
show['rootFolderPath'] = self.config.get('root_folder_path', rootfolder[0]['path'])
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if the user supplies root_folder_path we should probably not query for rootfolder, no?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

explained in gitter.

@liiight liiight merged commit c4f0059 into Flexget:develop Dec 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants