Skip to content

Commit 9648b82

Browse files
committed
Merge pull request #3 from wnielson/master
refresh from source
2 parents 8a7cd9a + fd442e6 commit 9648b82

2 files changed

Lines changed: 23 additions & 14 deletions

File tree

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Plex Remote Transcoder
22

3+
[![Join the chat at https://gitter.im/wnielson/Plex-Remote-Transcoder](https://badges.gitter.im/wnielson/Plex-Remote-Transcoder.svg)](https://gitter.im/wnielson/Plex-Remote-Transcoder?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
4+
35
A distributed transcoding backend for Plex.
46

57
At the present, this is really just a working proof-of-concept. More testing
@@ -13,6 +15,10 @@ guide [here](https://github.com/wnielson/Plex-Remote-Transcoder/wiki/Ubuntu-Inst
1315
Addtionally, for proposed features and some current limitations, check out
1416
[this page](https://github.com/wnielson/Plex-Remote-Transcoder/wiki/Improvements-&-Additional-Features).
1517

18+
## Contributing
19+
20+
Bug fixes/reports and feature requests are welcome! Either submit a pull request or create a new issue. There is also a [discussion board](https://gitter.im/wnielson/Plex-Remote-Transcoder).
21+
1622
## How Does it Work?
1723

1824
There have been quite a few projects attempting to load balance a Plex server,

prt.py

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -317,27 +317,30 @@ def version():
317317

318318
# Usage function
319319
def usage():
320-
__runningfile__ = os.path.basename(__file__)
321-
print "Usage for Plex Remote Transcoder (prt)"
322-
print "%s [options]\n" % (__runningfile__)
323-
print "Options:\n" \
324-
"usage, help, -h, ?\tshows usage page\n" \
325-
"get_load\t\tshows the load of the system\n" \
326-
"install\t\t\tinstalls PRT for the first time and then sets up configuration\n" \
327-
"overwrite\t\tfixes PRT after PMS has had a version update breaking PRT\n" \
328-
"add_host\t\tadds an extra host to the list of slaves PRT is to use\n" \
329-
"remove_host\t\tremoves a host from the list of slaces PRT is to use\n"
320+
version()
321+
print "Plex Remote Transcode comes with ABSOLUTELY NO WARRANTY.\n\n"\
322+
"This is free software, and you are welcome to redistribute it and/or modify\n"\
323+
"it under the terms of the MIT License.\n\n"
324+
print "Usage:\n"
325+
print " %s [options]\n" % os.path.basename(sys.argv[0])
326+
print "Options:\n\n" \
327+
" usage, help, -h, ? Show usage page\n" \
328+
" get_load Show the load of the system\n" \
329+
" install Install PRT for the first time and then sets up configuration\n" \
330+
" overwrite Fix PRT after PMS has had a version update breaking PRT\n" \
331+
" add_host Add an extra host to the list of slaves PRT is to use\n" \
332+
" remove_host Removes a host from the list of slaves PRT is to use\n"
330333

331334

332335
def main():
333336
# Specific usage options
334-
if any( [len(sys.argv) < 2 , sys.argv[1] == "usage", sys.argv[1] == "help", sys.argv[1] == "-h",
335-
sys.argv[1] == "?",] ):
337+
if len(sys.argv) < 2 or any((sys.argv[1] == "usage", sys.argv[1] == "help", sys.argv[1] == "-h",
338+
sys.argv[1] == "?",)):
336339
usage()
337340
sys.exit(-1)
338341

339-
# TODO: get_load_all to show load currently across all nodes
340-
# TODO: show_hosts_status to show current status across all nodes
342+
# TODO: get_load_all to show load currently across all nodes
343+
# TODO: show_hosts_status to show current status across all nodes
341344

342345
if sys.argv[1] == "get_load":
343346
print " ".join([str(i) for i in get_system_load_local()])

0 commit comments

Comments
 (0)