Explorar el Código

Remove stale JRiver code

Bryan Roessler hace 2 semanas
padre
commit
935bc4404f

+ 1 - 0
.gitignore

@@ -1,3 +1,4 @@
 .vscode/
 setup/
 .old/
+jriver

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 0 - 2
jriver/JRiver Saved Expressions.txt


+ 0 - 1
jriver/New Albums Sync (auto) Rules.txt

@@ -1 +0,0 @@
-[Media Type]=[Audio] [New]=[1] ~sort=[Date Imported] ~a

+ 2 - 3
jriver/expressions.txt

@@ -25,7 +25,6 @@ IfElse(
 
 
 
+IfElse(IsEqual([Media Type], Audio), If(IsEqual([Media Sub Type], Podcast), podcasts/Clean([Album],3), music/RemoveCharacters(Clean([Album Artist (auto)],3),.,2)/[[Year]] RemoveCharacters(Clean([Album],3),.,3)), IsEqual([Media Sub Type], Movie), movies/Clean(RemoveCharacters([Name],:), 3) [[Year]], IsEqual([Media Sub Type], TV Show), tv/Clean([Series],3)/Season PadNumber([Season], 2))
 
-Music\Clean([Album Artist (auto)],3)\[[Year]] Clean([Album],3)
-
-If(IsEmpty([Disc #],1), 1[Track #], [Disc #][Track #]) - Clean([Artist] - [Name],3)
+IfElse(IsEqual([Media Type], Audio), If(IsEmpty([Disc #],1), 1[Track #], [Disc #][Track #]) - RemoveCharacters(Clean([Artist] - [Name],3),.,3), IsEqual([Media Sub Type], Movie), Clean(RemoveCharacters([Name],:),3) [[Year]], IsEqual([Media Sub Type], TV Show), Clean([Series] - S[Season]E[Episode] - [Name],3))

+ 0 - 17
jriver/mediakeys.txt

@@ -1,17 +0,0 @@
-[Media Type]=[Audio] [Artist]=[Elton John] [Rating]=>=1 ~sort=Random
-
-MC Play/Pause:
-curl -s -o /dev/null -u Bryanhoop:Alonzo14 http://localhost:52199/MCWS/v1/Control/MCC?Command=10000
-
-MC Next Track:
-curl -s -o /dev/null -u Bryanhoop:Alonzo14 http://localhost:52199/MCWS/v1/Control/MCC?Command=10003
-
-MC Prev Track:
-curl -s -o /dev/null -u Bryanhoop:Alonzo14 http://localhost:52199/MCWS/v1/Control/MCC?Command=10004
-
-
-case $TERM in
-    xterm*)
-        precmd () {print -Pn "\e]0;${PWD/$HOME/\~}\a"}
-        ;;
-esac

+ 0 - 3
jriver/mediakeys2.txt

@@ -1,3 +0,0 @@
-Play/Pause: curl -s -o /dev/null -u Bryanhoop:Alonzo14 http://localhost:52199/MCWS/v1/Control/MCC?Command=10000
-Next: curl -s -o /dev/null -u Bryanhoop:Alonzo14 http://localhost:52199/MCWS/v1/Control/MCC?Command=10003
-Previous: curl -s -o /dev/null -u Bryanhoop:Alonzo14 http://localhost:52199/MCWS/v1/Control/MCC?Command=10004

+ 0 - 50
python/sabnzbd-check-access-patch

@@ -1,50 +0,0 @@
-#!/usr/bin/env python
-
-def check_access(access_type=4):
-    """Check if external address is allowed given access_type:
-    1=nzb
-    2=api
-    3=full_api
-    4=webui
-    5=webui with login for external
-    """
-    referrer = cherrypy.request.remote.ip
-
-    # CherryPy will report ::ffff:192.168.0.10 on dual-stack situation
-    # It will always contain that ::ffff: prefix
-
-    # Standardize input
-
-    for r in cfg.local_ranges():
-        if "/" in r:
-            prefix, suffix = r.split("/")
-            
-
-    def cidr_to_netmask(cidr):
-        cidr = int(cidr)
-        mask = (0xffffffff >> (32 - cidr)) << (32 - cidr)
-        return (str( (0xff000000 & mask) >> 24)   + '.' +
-                str( (0x00ff0000 & mask) >> 16)   + '.' +
-                str( (0x0000ff00 & mask) >> 8)    + '.' +
-                str( (0x000000ff & mask)))
-            
-
-
-    range_ok = not cfg.local_ranges() or bool(
-        [1 for r in cfg.local_ranges() if (referrer.startswith(r) or referrer.replace("::ffff:", "").startswith(r))]
-    )
-    allowed = referrer in ("127.0.0.1", "::ffff:127.0.0.1", "::1") or range_ok or access_type <= cfg.inet_exposure()
-    if not allowed:
-        logging.debug("Refused connection from %s", referrer)
-    return allowed
-
-
-def convert_cidr(ip,mask):
-    network = ''
-    iOctets = ip.split('.')
-    mOctets = mask.split('.')
-    network = str( int( iOctets[0] ) & int(mOctets[0] ) ) + '.'
-    network += str( int( iOctets[1] ) & int(mOctets[1] ) ) + '.'
-    network += str( int( iOctets[2] ) & int(mOctets[2] ) ) + '.'
-    network += str( int( iOctets[3] ) & int(mOctets[3] ) )
-    return network

Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio