Initial newsletter support
This commit is contained in:
@@ -965,4 +965,12 @@ def get_plexpy_url(hostname=None):
|
||||
else:
|
||||
root = ''
|
||||
|
||||
return scheme + '://' + hostname + port + root
|
||||
return scheme + '://' + hostname + port + root
|
||||
|
||||
def momentjs_to_arrow(format, duration=False):
|
||||
invalid_formats = ['Mo', 'DDDo', 'do']
|
||||
if duration:
|
||||
invalid_formats += ['A', 'a']
|
||||
for f in invalid_formats:
|
||||
format = format.replace(f, '')
|
||||
return format
|
||||
|
Reference in New Issue
Block a user