Advertisement
zilexa

Untitled

Feb 28th, 2023
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 31.94 KB | None | 0 0
  1. #-------------Basic Config Options Start Here---------------#
  2.  
  3. #----------------------------------------------------------#
  4. # Played Filter Statements
  5. #
  6. # [A,B,C]
  7. #
  8. # A - Condition Days
  9. # B - Played Count Inequality
  10. # C - Played Count
  11. #
  12. # Condition Days (A): Find media items last played at least this many days ago
  13. # 0-730500 - Number of days filter will use to determine when the media item was last played
  14. # -1 - To disable deleting specified media type
  15. #
  16. # Played Count Inequality (B): Delete media items within this range based off of the chosen *_played_count.
  17. # > - Filter media items with a played count greater than *_played_count days ago
  18. # < - Filter media items with a played count less than *_played_count days ago
  19. # >= - Filter media items with a played count greater than or equal to *_played_count days ago
  20. # <= - Filter media items with a played count less than or equal to *_played_count days ago
  21. # == - Filter media items with a played count equal to *_played_count days ago
  22. # not > - Filter media items with a played count not greater than *_played_count days ago
  23. # not < - Filter media items with a played count not less than *_played_count days ago
  24. # not >= - Filter media items with a played count not greater than or equal to *_played_count days ago
  25. # not <= - Filter media items with a played count not less than or equal to *_played_count days ago
  26. # not == - Filter media items with a played count not equal to *_played_count days ago
  27. #
  28. # Played Count (C): Find media items with a played count relative to this number.
  29. # 1-730500 - Number of times a media item has been played
  30. #
  31. # ([-1,'>=',1] : default)
  32. #----------------------------------------------------------#
  33. played_filter_movie=[3, '>=', 1]
  34. played_filter_episode=[21, '>=', 1]
  35. played_filter_audio=[-1, '>=', 1]
  36. played_filter_audiobook=[7, '>=', 1]
  37.  
  38. #----------------------------------------------------------#
  39. # Created Filter Statements
  40. #
  41. # [A,B,C,D]
  42. #
  43. # A - Condition Days
  44. # B - Played Count Inequality
  45. # C - Played Count
  46. # D - Behaviorial Control
  47. #
  48. # Condition Days (A): Find media items created at least this many days ago
  49. # 0-730500 - Number of days filter will use to determine when the media item was created
  50. # -1 - To disable deleting specified media type
  51. #
  52. # Played Count Inequality (B): Delete media items within this range based off of the chosen *_played_count.
  53. # > - Filter media items with a played count greater than *_played_count days ago
  54. # < - Filter media items with a played count less than *_played_count days ago
  55. # >= - Filter media items with a played count greater than or equal to *_played_count days ago
  56. # <= - Filter media items with a played count less than or equal to *_played_count days ago
  57. # == - Filter media items with a played count equal to *_played_count days ago
  58. # not > - Filter media items with a played count not greater than *_played_count days ago
  59. # not < - Filter media items with a played count not less than *_played_count days ago
  60. # not >= - Filter media items with a played count not greater than or equal to *_played_count days ago
  61. # not <= - Filter media items with a played count not less than or equal to *_played_count days ago
  62. # not == - Filter media items with a played count not equal to *_played_count days ago
  63. #
  64. # Played Count (C): Find media items with a played count relative to this number.
  65. # 0-730500 - Number of times a media item has been played
  66. #
  67. # Behavioral Control (D): Determine if favorited_behavior_*, whitetagged_behavior_*, blacktagged_behavior_*,
  68. # whitelisted_behavior_*, and blacklisted_behavior_* apply to media items meeting the created_filter_*.
  69. # False - Media items meeting the created_filter_* will be deleted regardless of favorited_behavior_*,
  70. # whitetagged_behavior_*, blacktagged_behavior_*, whitelisted_behavior_*, and blacklisted_behavior_*
  71. # True - Media items meeting the created_filter_* will also have to meet configured behaviors; favorited_behavior_*,
  72. # whitetagged_behavior_*, blacktagged_behavior_*, whitelisted_behavior_*, and blacklisted_behavior_*
  73. #
  74. # ([-1,'>=',1,True] : default)
  75. #----------------------------------------------------------#
  76. created_filter_movie=[-1, '>=', 1, True]
  77. created_filter_episode=[-1, '>=', 1, True]
  78. created_filter_audio=[-1, '>=', 1, True]
  79. created_filter_audiobook=[-1, '>=', 1, True]
  80.  
  81. #------------Advanced Config Options Start Here-------------#
  82.  
  83. #----------------------------------------------------------#
  84. # Favorited Behavioral Statements
  85. #
  86. # Favoriting is the first (and highest) priority
  87. # Whitetagging behavior is ignored
  88. # Blacktagging behavior is ignored
  89. # Whitelisting behavior is ignored
  90. # Blacklisting behavior is ignored
  91. #
  92. # [W, X, Y, Z]
  93. #
  94. # W - Action
  95. # X - User Conditional
  96. # Y - Played Conditional
  97. # Z - Action Control
  98. #
  99. # Action (W): Specify which action should be taken when (X) and (Y) is True.
  100. # delete - Delete media item from server
  101. # keep - Do NOT delete media item from server
  102. #
  103. # User Conditional (X): Specify how monitored users must have the media item favorited.
  104. # all - Every monitored user must have the media item favorited
  105. # any - One or more monitored users must have the media item favorited
  106. #
  107. # Played Conditional (Y): Specify how monitored users must meet played_filter_*.
  108. # all - Every monitored user must meet the played_filter_*
  109. # any - One or more monitored users must meet the played_filter_*
  110. # ignore - Ignore if monitored users meet the played_filter_*
  111. #
  112. # Action Control (Z): Specify the action the script will take when (X) and (Y) is True/False
  113. # 0 - No action taken on True; No action taken on False (disabled)
  114. # 1 - No action taken on True; Action taken on False
  115. # 2 - No action taken on True; Opposite action taken on False
  116. # 3 - Action taken on True; No action taken on False (recommended)
  117. # 4 - Action taken on True; Action taken on False
  118. # 5 - Action taken on True; Opposite action taken on False (recommended)
  119. # 6 - Opposite action taken on True; No action taken on False
  120. # 7 - Opposite action taken on True; Action taken on False
  121. # 8 - Opposite action taken on True; Opposite action taken on False
  122. #
  123. # (['keep','any','ignore',3] : default)
  124. #----------------------------------------------------------#
  125. favorited_behavior_movie=['keep', 'any', 'ignore', 3]
  126. favorited_behavior_episode=['keep', 'any', 'ignore', 3]
  127. favorited_behavior_audio=['keep', 'any', 'ignore', 3]
  128. favorited_behavior_audiobook=['keep', 'any', 'ignore', 3]
  129.  
  130. #----------------------------------------------------------#
  131. # Advanced movie favorites configurations
  132. # Requires 'favorited_behavior_movie[3]>=0'
  133. #----------------------------------------------------------#
  134. # Keep movie based on the genres
  135. # 0 - ok to delete movie when genres are set as a favorite
  136. # 1 - keep movie if FIRST genre listed is set as a favorite
  137. # 2 - keep movie if ANY genre listed is set as a favorite
  138. # (0 : default)
  139. #----------------------------------------------------------#
  140. favorited_advanced_movie_genre=0
  141. favorited_advanced_movie_library_genre=0
  142.  
  143. #----------------------------------------------------------#
  144. # Advanced episode favorites configurations
  145. # Requires 'favorited_behavior_episode[3]>=0'
  146. #----------------------------------------------------------#
  147. # Keep episode based on the genre(s) or studio-network(s)
  148. # 0 - ok to delete episode when its genres or studio-networks are set as a favorite
  149. # 1 - keep episode if FIRST genre or studio-network is set as a favorite
  150. # 2 - keep episode if ANY genres or studio-networks are set as a favorite
  151. # (0 : default)
  152. #----------------------------------------------------------#
  153. favorited_advanced_episode_genre=0
  154. favorited_advanced_season_genre=0
  155. favorited_advanced_series_genre=0
  156. favorited_advanced_tv_library_genre=0
  157. favorited_advanced_tv_studio_network=0
  158. favorited_advanced_tv_studio_network_genre=0
  159.  
  160. #----------------------------------------------------------#
  161. # Advanced track favorites configurations
  162. # Requires 'favorited_behavior_audio[3]>=0'
  163. #----------------------------------------------------------#
  164. # Keep track based on the genre(s) or artist(s)
  165. # 0 - ok to delete track when its genres or artists are set as a favorite
  166. # 1 - keep track if FIRST genre or artist is set as a favorite
  167. # 2 - keep track if ANY genres or artists are set as a favorite
  168. # (0 : default)
  169. #----------------------------------------------------------#
  170. favorited_advanced_track_genre=0
  171. favorited_advanced_album_genre=0
  172. favorited_advanced_music_library_genre=0
  173. favorited_advanced_track_artist=0
  174. favorited_advanced_album_artist=0
  175.  
  176. #----------------------------------------------------------#
  177. # Advanced audio book favorites configurations
  178. # Requires 'favorited_behavior_audiobook[3]>=0'
  179. #----------------------------------------------------------#
  180. # Keep audio book track based on the genres or authors
  181. # 0 - ok to delete audio book track when its genres or authors are set as a favorite
  182. # 1 - keep audio book track if FIRST genre or author is set as a favorite
  183. # 2 - keep audio book track if ANY genres or authors are set as a favorite
  184. # (0 : default)
  185. #----------------------------------------------------------#
  186. favorited_advanced_audiobook_track_genre=0
  187. favorited_advanced_audiobook_genre=0
  188. favorited_advanced_audiobook_library_genre=0
  189. favorited_advanced_audiobook_track_author=0
  190. favorited_advanced_audiobook_author=0
  191.  
  192. #----------------------------------------------------------#
  193. # User entered whitetag name; chosen during setup
  194. # Use a comma ',' to seperate multiple tag names
  195. # Ex: tagname,tag name,tag-name
  196. # Backslash '\' not allowed
  197. #----------------------------------------------------------#
  198. whitetag=''
  199.  
  200. #----------------------------------------------------------#
  201. # Whitetagged Behavioral Statements
  202. # Tags applied to a media item are seen by all users
  203. #
  204. # Whitetagging is the second priority
  205. # Blacktagging behavior is ignored
  206. # Whitelisting behavior is ignored
  207. # Blacklisting behavior is ignored
  208. #
  209. # [W, X, Y, Z]
  210. #
  211. # W - Action
  212. # X - User Conditional
  213. # Y - Played Conditional
  214. # Z - Action Control
  215. #
  216. # Action (W): Specify which action should be taken when (X) and (Y) is True.
  217. # delete - Delete media item from server
  218. # keep - Do NOT delete media item from server
  219. #
  220. # User Conditional (X): Specify how monitored users must have the media item whitetagged.
  221. # all - Every monitored user must have the media item whitetagged
  222. # any - N/A; Tags apply to all users
  223. #
  224. # Played Conditional (Y): Specify how monitored users must meet played_filter_*.
  225. # all - Every monitored user must meet the played_filter_*
  226. # any - One or more monitored users must meet the played_filter_*
  227. # ignore - Ignore if monitored users meet the played_filter_*
  228. #
  229. # Action Control (Z): Specify the action the script will take when (X) and (Y) is True/False
  230. # 0 - No action taken on True; No action taken on False (disabled)
  231. # 1 - No action taken on True; Action taken on False
  232. # 2 - No action taken on True; Opposite action taken on False
  233. # 3 - Action taken on True; No action taken on False (recommended)
  234. # 4 - Action taken on True; Action taken on False
  235. # 5 - Action taken on True; Opposite action taken on False (recommended)
  236. # 6 - Opposite action taken on True; No action taken on False
  237. # 7 - Opposite action taken on True; Action taken on False
  238. # 8 - Opposite action taken on True; Opposite action taken on False
  239. #
  240. # (['keep','all','ignore',0] : default)
  241. #----------------------------------------------------------#
  242. whitetagged_behavior_movie=['keep', 'all', 'ignore', 0]
  243. whitetagged_behavior_episode=['keep', 'all', 'ignore', 0]
  244. whitetagged_behavior_audio=['keep', 'all', 'ignore', 0]
  245. whitetagged_behavior_audiobook=['keep', 'all', 'ignore', 0]
  246.  
  247. #----------------------------------------------------------#
  248. # User entered blacktag name; chosen during setup
  249. # Use a comma ',' to seperate multiple tag names
  250. # Ex: tagname,tag name,tag-name
  251. # Backslash '\' not allowed
  252. #----------------------------------------------------------#
  253. blacktag=''
  254.  
  255. #----------------------------------------------------------#
  256. # Blacktagged Behavioral Statements
  257. # Tags applied to a media item are seen by all users
  258. #
  259. # Blacktagging is the third priority
  260. # Whitelisting behavior is ignored
  261. # Blacklisting behavior is ignored
  262. #
  263. # [W, X, Y, Z]
  264. #
  265. # W - Action
  266. # X - User Conditional
  267. # Y - Played Conditional
  268. # Z - Action Control
  269. #
  270. # Action (W): Specify which action should be taken when (X) and (Y) is True.
  271. # delete - Delete media item from server
  272. # keep - Do NOT delete media item from server
  273. #
  274. # User Conditional (X): Specify how monitored users must have the media item blacktagged.
  275. # all - Every monitored user must have the media item blacktagged
  276. # any - N/A; Tags apply to all users
  277. #
  278. # Played Conditional (Y): Specify how monitored users must meet played_filter_*.
  279. # all - Every monitored user must meet the played_filter_*
  280. # any - One or more monitored users must meet the played_filter_*
  281. # ignore - Ignore if monitored users meet the played_filter_*
  282. #
  283. # Action Control (Z): Specify the action the script will take when (X) and (Y) is True/False
  284. # 0 - No action taken on True; No action taken on False (disabled)
  285. # 1 - No action taken on True; Action taken on False
  286. # 2 - No action taken on True; Opposite action taken on False
  287. # 3 - Action taken on True; No action taken on False (recommended)
  288. # 4 - Action taken on True; Action taken on False
  289. # 5 - Action taken on True; Opposite action taken on False (recommended)
  290. # 6 - Opposite action taken on True; No action taken on False
  291. # 7 - Opposite action taken on True; Action taken on False
  292. # 8 - Opposite action taken on True; Opposite action taken on False
  293. #
  294. # (['delete','all','any',0] : default)
  295. #----------------------------------------------------------#
  296. blacktagged_behavior_movie=['delete', 'all', 'any', 0]
  297. blacktagged_behavior_episode=['delete', 'all', 'any', 0]
  298. blacktagged_behavior_audio=['delete', 'all', 'any', 0]
  299. blacktagged_behavior_audiobook=['delete', 'all', 'any', 0]
  300.  
  301. #----------------------------------------------------------#
  302. # Whitelisted Behavioral Statements
  303. #
  304. # Whitelisting is the fourth priority
  305. # Blacklisting behavior is ignored
  306. #
  307. # [W, X, Y, Z]
  308. #
  309. # W - Action
  310. # X - User Conditional
  311. # Y - Played Conditional
  312. # Z - Action Control
  313. #
  314. # Action (W): Specify which action should be taken when (X) and (Y) is True.
  315. # delete - Delete media item from server
  316. # keep - Do NOT delete media item from server
  317. #
  318. # User Conditional (X): Specify how monitored users must have the media item whitelisted.
  319. # all - Every monitored user must have the media item whitelisted
  320. # any - One or more monitored users must have the media item whitelisted
  321. #
  322. # Played Conditional (Y): Specify how monitored users must meet played_filter_*.
  323. # all - Every monitored user must meet the played_filter_*
  324. # any - One or more monitored users must meet the played_filter_*
  325. # ignore - Ignore if monitored users meet the played_filter_*
  326. #
  327. # Action Control (Z): Specify the action the script will take when (X) and (Y) is True/False
  328. # 0 - No action taken on True; No action taken on False (disabled)
  329. # 1 - No action taken on True; Action taken on False
  330. # 2 - No action taken on True; Opposite action taken on False
  331. # 3 - Action taken on True; No action taken on False (recommended)
  332. # 4 - Action taken on True; Action taken on False
  333. # 5 - Action taken on True; Opposite action taken on False (recommended)
  334. # 6 - Opposite action taken on True; No action taken on False
  335. # 7 - Opposite action taken on True; Action taken on False
  336. # 8 - Opposite action taken on True; Opposite action taken on False
  337. #
  338. # (['keep','any','ignore',3] : default)
  339. #----------------------------------------------------------#
  340. whitelisted_behavior_movie=['keep', 'any', 'ignore', 3]
  341. whitelisted_behavior_episode=['keep', 'any', 'ignore', 3]
  342. whitelisted_behavior_audio=['keep', 'any', 'ignore', 3]
  343. whitelisted_behavior_audiobook=['keep', 'any', 'ignore', 3]
  344.  
  345. #----------------------------------------------------------#
  346. # Blacklisted Behavioral Statements
  347. #
  348. # Blacklisting is the fifth (and lowest) priority
  349. #
  350. # [W, X, Y, Z]
  351. #
  352. # W - Action
  353. # X - User Conditional
  354. # Y - Played Conditional
  355. # Z - Action Control
  356. #
  357. # Action (W): Specify which action should be taken when (X) and (Y) is True.
  358. # delete - Delete media item from server
  359. # keep - Do NOT delete media item from server
  360. #
  361. # User Conditional (X): Specify how monitored users must have the media item blacklisted.
  362. # all - Every monitored user must have the media item blacklisted
  363. # any - One or more monitored users must have the media item blacklisted
  364. #
  365. # Played Conditional (Y): Specify how monitored users must meet played_filter_*.
  366. # all - Every monitored user must meet the played_filter_*
  367. # any - One or more monitored users must meet the played_filter_*
  368. # ignore - Ignore if monitored users meet the played_filter_*
  369. #
  370. # Action Control (Z): Specify the action the script will take when (X) and (Y) is True/False
  371. # 0 - No action taken on True; No action taken on False (disabled)
  372. # 1 - No action taken on True; Action taken on False
  373. # 2 - No action taken on True; Opposite action taken on False
  374. # 3 - Action taken on True; No action taken on False (recommended)
  375. # 4 - Action taken on True; Action taken on False
  376. # 5 - Action taken on True; Opposite action taken on False (recommended)
  377. # 6 - Opposite action taken on True; No action taken on False
  378. # 7 - Opposite action taken on True; Action taken on False
  379. # 8 - Opposite action taken on True; Opposite action taken on False
  380. #
  381. # (['delete','any','any',3] : default)
  382. #----------------------------------------------------------#
  383. blacklisted_behavior_movie=['delete', 'any', 'any', 3]
  384. blacklisted_behavior_episode=['delete', 'any', 'any', 3]
  385. blacklisted_behavior_audio=['delete', 'any', 'any', 3]
  386. blacklisted_behavior_audiobook=['delete', 'any', 'any', 3]
  387.  
  388. #----------------------------------------------------------#
  389. # Decide the minimum number of episodes to remain in all tv series'
  390. # This ignores the played and unplayed states of episodes
  391. # 0 - Episodes will be deleted based on the Filter and Behavioral Statements
  392. # 1-730500 - Episodes will be deleted based on the Filter and Behavioral Statements;
  393. # unless the remaining played and unplayed episodes are less than or
  394. # equal to the chosen value
  395. # (0 : default)
  396. #----------------------------------------------------------#
  397. minimum_number_episodes=0
  398.  
  399. #----------------------------------------------------------#
  400. # Decide the minimum number of played episodes to remain in all tv series'
  401. # Keeping one or more played epsiodes for each series allows the "Next Up"
  402. # functionality to notify user(s) when a new episode for a series
  403. # is available
  404. # This value applies only to played and episodes
  405. # 0 - Episodes will be deleted based on the Filter and Behavioral Statements
  406. # 1-730500 - Episodes will be deleted based on the Filter and Behavioral Statements;
  407. # unless the remaining played episodes are less than or equal to the
  408. # chosen value
  409. # (0 : default)
  410. #----------------------------------------------------------#
  411. minimum_number_played_episodes=0
  412.  
  413. #----------------------------------------------------------#
  414. # Decide how 'minimum_number_episodes' and 'minimum_number_played_episodes' will behave.
  415. # The minimum number of played and unplayed episodes will vary for each user and for each
  416. # series when multiple users are watching the same series at different paces.
  417. # The following option gives a mechanism to control this in different ways.
  418. # The 'minimum_number_episodes' and 'minimum_number_played_episodes' will be based off of...
  419. # 'User's Name' - The UserName specified; If matching UserName not found script will assume default.
  420. # 'User's Id' - The UserId specified; If matching UserName not found script will assume default.
  421. # 'Max Played' - The first user with the highest number of played episodes to be deleted for each series.
  422. # 'Min Played' - The first user with the lowest number of played episodes to be deleted for each series.
  423. # 'Max Unplayed' - The first user with the highest number of unplayed episodes to be deleted for each series.
  424. # 'Min Unplayed' - The first user with the lowest number of unplayed episodes to be deleted for each series.
  425. # The Max/Min Played/Unplayed values can be mixed and matched. For example...
  426. # 'Max Unplayed Min Played' - The number played episodes to be deleted is based off the user
  427. # with the highest number of unplayed episodes to be deleted for a
  428. # specified series. The number of unplayed episodes to be deleted is
  429. # based off the user with the lowest number of played episodes to be
  430. # deleted for a specified series.
  431. # ('Min Played Min Unplayed' : default)
  432. #----------------------------------------------------------#
  433. minimum_number_episodes_behavior='Max Played Min Unplayed'
  434.  
  435. #----------------------------------------------------------#
  436. # Add last played date for items missing the LastPlayedDate data
  437. # When played state is imported from Trakt the LastPlayedDate is
  438. # not populated. To allow the script to maintain functionality
  439. # the current date and time the script is run can be used as the
  440. # LastPlayedDate value.
  441. # False - Do not set the LastPlayedDate; days since played will show as
  442. # the number of days since 1970-Jan-01 00:00:00hrs for any media
  443. # items missng the LastPlayedDate data.
  444. # True - Set the LastPlayedDate; the current date-time the script is
  445. # run will be saved as the LastPlayedDate for any media items
  446. # missing the LastPlayedDate data. Only media items missing the
  447. # LastPlayedDate data are modified
  448. # (True : default)
  449. #----------------------------------------------------------#
  450. movie_set_missing_last_played_date=True
  451. episode_set_missing_last_played_date=True
  452. audio_set_missing_last_played_date=True
  453. audiobook_set_missing_last_played_date=True
  454.  
  455. #----------------------------------------------------------#
  456. # Enable/Disable console outputs by type
  457. #----------------------------------------------------------#
  458. # Should the script print its output to the console
  459. # False - Do not print this output type to the console
  460. # True - Print this output type to the console
  461. # (True : default)
  462. #----------------------------------------------------------#
  463. print_script_header=True
  464. print_warnings=True
  465. print_user_header=True
  466. print_movie_delete_info=True
  467. print_movie_keep_info=True
  468. print_episode_delete_info=True
  469. print_episode_keep_info=True
  470. print_audio_delete_info=True
  471. print_audio_keep_info=True
  472. print_audiobook_delete_info=True
  473. print_audiobook_keep_info=True
  474. print_summary_header=True
  475. print_movie_summary=True
  476. print_episode_summary=True
  477. print_audio_summary=True
  478. print_audiobook_summary=True
  479. print_script_footer=True
  480.  
  481. #----------------------------------------------------------#
  482. # Set to True to add new users or edit existing users
  483. # Must be a boolean True or False value
  484. # False - Operate normally
  485. # True - Enable configuration editor mode; will NOT delete media items
  486. # Resets to dry run mode (REMOVE_FILES=False)
  487. # (False : default)
  488. #----------------------------------------------------------#
  489. UPDATE_CONFIG=False
  490.  
  491. #----------------------------------------------------------#
  492. # Must be a boolean True or False value
  493. # False - Disables the ability to delete media (dry run mode)
  494. # True - Enable the ability to delete media
  495. # (False : default)
  496. #----------------------------------------------------------#
  497. REMOVE_FILES=False
  498.  
  499. #---------!!!DO NOT MODIFY ANYTHING BELOW!!!----------------#
  500. # These are automatically created during setup.
  501. # If you do not know EXACTLY what you are doing; changing these
  502. # may cause script failure.
  503. # The only way to recover from script failure is to revert the
  504. # config back to the way it was OR rebuild a new config.
  505. #----------------------------------------------------------#
  506.  
  507. #----------------------------------------------------------#
  508. # Server branding; chosen during setup
  509. # 0 - 'emby'
  510. # 1 - 'jellyfin'
  511. #----------------------------------------------------------#
  512. server_brand='jellyfin'
  513.  
  514. #----------------------------------------------------------#
  515. # Server URL; created during setup
  516. #----------------------------------------------------------#
  517. server_url='http://192.168.88.2:8096/emby'
  518.  
  519. #----------------------------------------------------------#
  520. # Authentication Key; requested from server during setup
  521. # Used for API queries sent to the server
  522. # Also know as an Access Token
  523. #----------------------------------------------------------#
  524. auth_key='cbb413d96a4041cc912ea207b4fc0c65'
  525.  
  526. #----------------------------------------------------------#
  527. # Decide how the script will use the libraries chosen for each user
  528. # Only used during creation or editing of the configuration file
  529. # 0 - blacklist - Chosen libraries will blacklisted
  530. # All other libraries will be whitelisted
  531. # 1 - whitelist - Chosen libraries will whitelisted
  532. # All other libraries will be blacklisted
  533. # (blacklist : default)
  534. #----------------------------------------------------------#
  535. library_setup_behavior='blacklist'
  536.  
  537. #----------------------------------------------------------#
  538. # Decide how the script will match media items to libraries
  539. # 0 - byId - Media items will be matched to libraries using 'LibraryIds'
  540. # 1 - byPath - Media items will be matched to libraries using 'Paths'
  541. # 2 - byNetwork Path - Media items will be matched to libraries using 'NetworkPaths'
  542. # Filtering byId does not apply to the rules below.
  543. # Filtering byPath requires no shared network folders are configured.
  544. # Filtering byNetworkPath requires shared network folders are configured.
  545. # (byId : default)
  546. #----------------------------------------------------------#
  547. library_matching_behavior='byId'
  548.  
  549. #----------------------------------------------------------#
  550. # User UserName(s) and UserId(s) of monitored account(s); chosen during setup
  551. # The order of the UserName(s):UserId(s) here must match the order of the
  552. # UserId(s)/UserNames(s) in user_bl_libs and user_wl_libs
  553. #----------------------------------------------------------#
  554. user_keys='[]'
  555.  
  556. #----------------------------------------------------------#
  557. # Blacklisted libraries with corresponding user keys(s)
  558. # These libraries are typically searched for media items to delete
  559. # Chosen during setup
  560. #----------------------------------------------------------#
  561. user_bl_libs='[]'
  562.  
  563. #----------------------------------------------------------#
  564. # Whitelisted libraries with corresponding user keys(s)
  565. # These libraries are typically not searched for media items to delete
  566. # Chosen during setup
  567. #----------------------------------------------------------#
  568. user_wl_libs='[]'
  569.  
  570. #----------------------------------------------------------#
  571. # API query attempts
  572. # Number of times to retry an API request
  573. # Delay between initial attempt and the first retry is 1 second
  574. # The delay will double with each attempt after the first retry
  575. # Delay between the orginal request and retry #1 is (2^0) 1 second
  576. # Delay between retry #1 and retry #2 is (2^1) 2 seconds
  577. # Delay between retry #2 and retry #3 is (2^2) 4 seconds
  578. # Delay between retry #3 and retry #4 is (2^3) 8 seconds
  579. # Delay between retry #4 and retry #5 is (2^4) 16 seconds
  580. # Delay between retry #5 and retry #6 is (2^5) 32 seconds
  581. # ...
  582. # Delay between retry #15 and retry #16 is (2^15) 32768 seconds
  583. # 0-16 - number of retry attempts
  584. # (4 : default)
  585. #----------------------------------------------------------#
  586. api_query_attempts=4
  587.  
  588. #----------------------------------------------------------#
  589. # API query item limit
  590. # To keep the server running smoothly we do not want it to return a
  591. # large amount of metadata from a single API query
  592. # If the server lags or bogs down when this script runs try lowering
  593. # this value to allow the server to return smaller amounts of data
  594. # ALL media items and their metadata are processed regardless of this value
  595. # 1-10000 - maximum number of media items the server will return for each API query
  596. # (25 : default)
  597. #----------------------------------------------------------#
  598. api_query_item_limit=25
  599.  
  600. #----------------------------------------------------------#
  601. # API cache maximum size
  602. # To keep the script running efficiently we do not want to send the
  603. # same requests to the server repeatedly
  604. # If any single data entry is larger than the cache size, that data entry
  605. # will not be cached
  606. # 0.1MB of cache is better than 0MB of cache
  607. # Recommend setting DEBUG=1 to print the cache stats to determine the
  608. # best cache settings (i.e. size, fallback behavior, and last accessed time)
  609. #
  610. # MegaByte Sizing Reference
  611. # 1MB = 1048576 Bytes
  612. # 1000MB = 1GB
  613. # 10000MB = 10GB
  614. #
  615. # 0 - Disable cache
  616. # 1-10000 - Size of cache in megabytes (MB)
  617. # (32 : default)
  618. #----------------------------------------------------------#
  619. api_query_cache_size=32
  620.  
  621. #----------------------------------------------------------#
  622. # API cache fallback behavior
  623. # By default the script is a hybrid LFU-LRU RAM Cache
  624. #
  625. # 1.First the cache is filled
  626. # 2.Once full the cache uses api_query_cache_last_accessed_time to
  627. # establish a minimum age an entry has to be for removal
  628. # 3.Then the oldest entry meeting the minimum age (from step 2) with
  629. # the lowest number of hits (reads) is removed
  630. # 4.If no entrys meet the minimum age or all have the same number of
  631. # cache hits (reads); api_query_cache_fallback_behavior is used
  632. # Recommend setting DEBUG=1 to print the cache stats to determine the
  633. # best cache settings (i.e. size, fallback behavior, and last accessed time)
  634. #
  635. # Fallback To
  636. # 'FIFO' - First In First Out (first entry is removed)
  637. # 'LFU' - Least Frequently Used (first entry with the lowest number of hits is removed)
  638. # 'LRU' - Least Recently Used (first entry with the oldest access time is removed)
  639. # (LRU : default)
  640. #----------------------------------------------------------#
  641. api_query_cache_fallback_behavior='LRU'
  642.  
  643. #----------------------------------------------------------#
  644. # API cache entry minium age
  645. #
  646. # Once full the cache uses api_query_cache_last_accessed_time to
  647. # establish a minimum age an entry has to be for removal
  648. #
  649. # Bigger is NOT always better. The older an entry is allowed to be, the lower
  650. # the number of elgible entries for removal when cache is full.
  651. # When this happens the script will not be able to find an entry that
  652. # satisfies LFU-LRU and will use api_query_cache_fallback_behavior
  653. # until there is enough space in cache for the newest entry.
  654. # Of course setting a bigger cache size means needing to remove less
  655. # cache entries.
  656. # Increase api_query_cache_size before increasing this api_query_cache_last_accessed_time
  657. # Recommend setting DEBUG=1 to print the cache stats to determine the
  658. # best cache settings (i.e. size, fallback behavior, and last accessed time)
  659. #
  660. # Millisecond Timing Reference
  661. # 1ms = 0.001s
  662. # 1000ms = 1s
  663. # 100000ms = 100s
  664. #
  665. # 0-600000 - Minimum cached entry age for removal in milliseconds (ms)
  666. # (200 : default)
  667. #----------------------------------------------------------#
  668. api_query_cache_last_accessed_time=200
  669.  
  670. #----------------------------------------------------------#
  671. # Must be an integer value
  672. # Debug log file save to: /the/script/directory/mumc_DEBUG.log
  673. # The debug log file can be large (i.e. 10s to 100s of MBytes)
  674. # Recommend only enabling DEBUG when necessary
  675. # False - Debug messages disabled
  676. # 0 - Debug messages disabled
  677. # True - Level 1 debug messages enabled
  678. # 1 - Level 1 debug messaging enabled
  679. # 2 - Level 2 debug messaging enabled
  680. # 3 - Level 3 debug messaging enabled
  681. # 4 - Level 4 debug messaging enabled
  682. # (0 : default)
  683. #----------------------------------------------------------#
  684. DEBUG=4
  685.  
  686. #-------------End Config Options----------------------------#
Tags: MUMC CONFIG
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement