Coverage for src/iptvtools/constants/patterns.py: 100%
4 statements
« prev ^ index » next coverage.py v7.6.10, created at 2025-01-31 13:48 +0000
« prev ^ index » next coverage.py v7.6.10, created at 2025-01-31 13:48 +0000
1#!/usr/bin/env python
2"""Patterns for iptvtools.
4File: constants.py
5Author: huxuan
6Email: i(at)huxuan.org
7"""
9import re
11PARAMS = re.compile(r'(\S+)="(.*?)"')
12EXTINF = re.compile(r"^#EXTINF:(?P<duration>-?\d+?) ?(?P<params>.*),(?P<title>.*?)$")
13EXTM3U = re.compile(r"^#EXTM3U ?(?P<params>.*)$")