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

Commit 049acf3

Browse files
style: various code style and docs adjustments (#366)
1 parent f785cbf commit 049acf3

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

Contents/Code/general_helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ def remove_uploaded_media_error_handler(func, path, exc_info):
382382
----------
383383
func : any
384384
The function that caused the error.
385-
path : str
385+
path : any
386386
The path that caused the error.
387387
exc_info : any
388388
The exception information.

Contents/Code/youtube_dl_helper.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@
1616
from plexhints.prefs_kit import Prefs # prefs kit
1717

1818
# imports from Libraries\Shared
19-
from constants import plugin_identifier, plugin_support_data_directory
2019
from typing import Optional
2120
import youtube_dl
2221

22+
# local imports
23+
from constants import plugin_identifier, plugin_support_data_directory
24+
2325
# get the plugin logger
2426
plugin_logger = logging.getLogger(plugin_identifier)
2527

@@ -77,11 +79,11 @@ def process_youtube(url):
7779
try:
7880
cookies = json.loads(Prefs['str_youtube_cookies'])
7981
for cookie in cookies:
80-
include_subdom = cookie['domain'].startswith('.')
82+
include_subdomain = cookie['domain'].startswith('.')
8183
expiry = int(cookie.get('expiry', 0))
8284
values = [
8385
cookie['domain'],
84-
nsbool(include_subdom),
86+
nsbool(include_subdomain),
8587
cookie['path'],
8688
nsbool(cookie['secure']),
8789
str(expiry),
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
:github_url: https://github.com/LizardByte/Themerr-plex/blob/master/Contents/Code/themerr_db_helper.py
2+
3+
.. include:: ../global.rst
4+
5+
:modname:`themerr_db_helper`
6+
----------------------------
7+
.. automodule:: Code.themerr_db_helper
8+
:members:
9+
:show-inheritance:

docs/source/toc.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
code_docs/migration_helper
3030
code_docs/plex_api_helper
3131
code_docs/scheduled_tasks
32+
code_docs/themerr_db_helper
3233
code_docs/tmdb_helper
3334
code_docs/webapp
3435
code_docs/youtube_dl_helper

0 commit comments

Comments
 (0)