summaryrefslogtreecommitdiff
path: root/plugin.video.vrt.nu/resources/lib/vrtplayer/statichelper.py
blob: e654804fbe7e157e1ec27eedcca5607b513923bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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://")