diff --git a/README.md b/README.md index 7cb3bdb..5af5e7c 100644 --- a/README.md +++ b/README.md @@ -171,7 +171,7 @@ ARD CBC CTV DSNP ITV MTSP NBLA NRK PLUTO RTE STV TUBI UKTV ZDF These services have web-origins and not all have been tested by me. **Servies Note** -Some services may be found in an options folder (packages/envied/src/envied/options/). The may have constraints on the python version they run under. Only copy a service into the packages/envied/src/envied/services folder if the version matches yours. +Some services may be found in an options folder (packages/envied/src/envied/options/). The may have constraints on the python version they run under. Only copy a service into the packages/envied/src/envied/services folder if the version matches yours. **Other README's"" TwinVine/packages/vinefeeder/src/vinefeeder/README.md diff --git a/packages/envied/src/envied/services/TPTV/__init__.py b/packages/envied/src/envied/services/TPTV/__init__.py index 07f5d42..35ed525 100644 --- a/packages/envied/src/envied/services/TPTV/__init__.py +++ b/packages/envied/src/envied/services/TPTV/__init__.py @@ -330,3 +330,8 @@ class TPTV(Service): elif 'product' in url: # single item prod_id = url.split('-')[-1] return [prod_id] + elif 'VIDEO' in url: + prod_id = url.split('/')[-2] + return [prod_id] + else: + raise ValueError("URL format not recognized for data retrieval.") \ No newline at end of file