summaryrefslogtreecommitdiff
path: root/plugin.video.vrt.nu/resources/lib/vrtplayer/statichelper.py
diff options
context:
space:
mode:
Diffstat (limited to 'plugin.video.vrt.nu/resources/lib/vrtplayer/statichelper.py')
-rw-r--r--plugin.video.vrt.nu/resources/lib/vrtplayer/statichelper.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/plugin.video.vrt.nu/resources/lib/vrtplayer/statichelper.py b/plugin.video.vrt.nu/resources/lib/vrtplayer/statichelper.py
new file mode 100644
index 0000000..e654804
--- /dev/null
+++ b/plugin.video.vrt.nu/resources/lib/vrtplayer/statichelper.py
@@ -0,0 +1,13 @@
+def minutes_string_to_seconds_int(minutes):
+ try:
+ return int(minutes) * 60
+ except ValueError:
+ return None
+
+
+def replace_newlines_and_strip(text):
+ return text.replace("\n", "").strip()
+
+
+def replace_double_slashes_with_https(url):
+ return url.replace("//", "https://")