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

1#!/usr/bin/env python 

2"""Patterns for iptvtools. 

3 

4File: constants.py 

5Author: huxuan 

6Email: i(at)huxuan.org 

7""" 

8 

9import re 

10 

11PARAMS = re.compile(r'(\S+)="(.*?)"') 

12EXTINF = re.compile(r"^#EXTINF:(?P<duration>-?\d+?) ?(?P<params>.*),(?P<title>.*?)$") 

13EXTM3U = re.compile(r"^#EXTM3U ?(?P<params>.*)$")