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

Added systemd service file and refactored main.py #605

Open
wants to merge 36 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
217a9e3
Added support for local trakt list
jaqb Jul 26, 2023
4719337
Added systemd service file and refactored main.py
KJSain Dec 19, 2023
bf8f53e
Fix issue 578: Reoccurrence of Issue #478: Single Episode Downloads N…
sirstudly Mar 30, 2024
fbd83ed
Resolving issue https://github.com/itsToggle/plex_debrid/issues/638
sirstudly Mar 21, 2024
3c3b2f0
Allow movie matches with year NOT present in title
sirstudly Mar 29, 2024
e15dec2
Fix issue 578: Reoccurrence of Issue #478: Single Episode Downloads N…
sirstudly Mar 30, 2024
b01f8ad
classes.py:deviation(): improve regex matching
sirstudly Apr 2, 2024
613e1c3
Parameterized watchlist loop interval rather than hardcoded 30 minutes
sirstudly Apr 3, 2024
f1d4413
Fix deviation() for season release of:
sirstudly Apr 5, 2024
f777216
Add plex server address help
petern-sc May 10, 2024
3a3c858
"Elfify" the logo
funkypenguin Jul 2, 2024
c678fa1
try to pass oauth details to PD using env vars
funkypenguin Jul 12, 2024
232582d
Added Zilean support
sirstudly Jul 14, 2024
99aac84
Updated docker files
sirstudly Jul 14, 2024
611c4ab
Additional comments and debugging statements
sirstudly Jul 14, 2024
b4d758b
Fix missing originallyAvailableAt on classes::released
sirstudly Jul 14, 2024
86c912a
Parameterized watchlist loop interval rather than hardcoded 30 minutes
sirstudly Apr 3, 2024
29072da
Issue 529: Update default character replacement to better handle punc…
sirstudly Jul 17, 2024
808b518
Fixing zilean support
sirstudly Jul 21, 2024
11655d0
Allow access to host network in docker-compose.yml
sirstudly Jul 21, 2024
b226b1e
Fixing zilean alt matching
sirstudly Jul 21, 2024
b05494d
Fixing zilean alt matching
sirstudly Jul 21, 2024
b43ca9e
Fixing zilean alt matching
sirstudly Jul 21, 2024
9009b43
Added Zilean support
sirstudly Jul 14, 2024
5af1c22
Merge pull request #1 from sirstudly/issue_578
funkypenguin Jul 23, 2024
01704ea
Merge pull request #3 from sirstudly/zilean_support
funkypenguin Jul 23, 2024
d59a66f
Merge pull request #2 from sirstudly/watchlist_loop_param
funkypenguin Jul 23, 2024
617993a
Bump version to v2.96
funkypenguin Jul 23, 2024
9676555
Merge branch 'main' of github.com:elfhosted/plex_debrid
funkypenguin Jul 23, 2024
401a4e0
Issue 529: Update default character replacement to better handle punc…
sirstudly Jul 23, 2024
12c3942
Merge branch 'issue_529'
sirstudly Jul 23, 2024
117b372
Reverting some regex fixes which may not be required?
sirstudly Jul 23, 2024
42af256
Reverting previous commit.. included in branch issue_529
sirstudly Jul 23, 2024
a83717f
Merge pull request #1 from sirstudly/main
KJSain Aug 31, 2024
1a85197
Merge branch 'main' into pr/684
KJSain Aug 31, 2024
827862d
Merge pull request #3 from jaqb/main
KJSain Aug 31, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions extras/plex_debrid.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[Unit]
Description=Plex torrent streaming through Debrid Services
After=network.target

# Adjust paths and user/group as required.
[Service]
ExecStart=/usr/bin/python3 /usr/local/plex_debrid/main.py --service --config-dir=/var/lib/plex_debrid
Restart=always
User=media
Group=media
WorkingDirectory=/var/lib/plex_debrid

[Install]
WantedBy=multi-user.target
20 changes: 7 additions & 13 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
import argparse
import ui
from base import *

config_dir = ""
service_mode = False
parser = argparse.ArgumentParser(description='Plex Debrid')

if os.path.exists('./settings.json'):
if os.path.getsize('./settings.json') > 0 and os.path.isfile('./settings.json'):
config_dir = "."
parser.add_argument('--config-dir', '-c', type=str, default='.', help='Configuration directory')
parser.add_argument('--service', '-s', default=True, action='store_true', help='Run in service mode')

for i,arg in enumerate(sys.argv):
if config_dir == "" and arg == "--config-dir":
config_dir = sys.argv[i+1]
if arg == "-service":
service_mode = True
args = parser.parse_args()

if config_dir == "":
config_dir = "."
settings_path = f"{args.config_dir}/settings.json"

if __name__ == "__main__":
ui.run(config_dir, service_mode)
ui.run(args.config_dir, args.service)