Skip to content
This repository has been archived by the owner on Oct 13, 2024. It is now read-only.

Commit

Permalink
style: various code style and docs adjustments (#366)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher authored Mar 10, 2024
1 parent f785cbf commit 049acf3
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Contents/Code/general_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ def remove_uploaded_media_error_handler(func, path, exc_info):
----------
func : any
The function that caused the error.
path : str
path : any
The path that caused the error.
exc_info : any
The exception information.
Expand Down
8 changes: 5 additions & 3 deletions Contents/Code/youtube_dl_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,12 @@
from plexhints.prefs_kit import Prefs # prefs kit

# imports from Libraries\Shared
from constants import plugin_identifier, plugin_support_data_directory
from typing import Optional
import youtube_dl

# local imports
from constants import plugin_identifier, plugin_support_data_directory

# get the plugin logger
plugin_logger = logging.getLogger(plugin_identifier)

Expand Down Expand Up @@ -77,11 +79,11 @@ def process_youtube(url):
try:
cookies = json.loads(Prefs['str_youtube_cookies'])
for cookie in cookies:
include_subdom = cookie['domain'].startswith('.')
include_subdomain = cookie['domain'].startswith('.')
expiry = int(cookie.get('expiry', 0))
values = [
cookie['domain'],
nsbool(include_subdom),
nsbool(include_subdomain),
cookie['path'],
nsbool(cookie['secure']),
str(expiry),
Expand Down
9 changes: 9 additions & 0 deletions docs/source/code_docs/themerr_db_helper.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
:github_url: https://github.com/LizardByte/Themerr-plex/blob/master/Contents/Code/themerr_db_helper.py

.. include:: ../global.rst

:modname:`themerr_db_helper`
----------------------------
.. automodule:: Code.themerr_db_helper
:members:
:show-inheritance:
1 change: 1 addition & 0 deletions docs/source/toc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
code_docs/migration_helper
code_docs/plex_api_helper
code_docs/scheduled_tasks
code_docs/themerr_db_helper
code_docs/tmdb_helper
code_docs/webapp
code_docs/youtube_dl_helper

0 comments on commit 049acf3

Please sign in to comment.