mirror of
https://github.com/vinefeeder/TwinVine.git
synced 2026-07-15 18:10:04 +02:00
TPTV fix
This commit is contained in:
@@ -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.
|
These services have web-origins and not all have been tested by me.
|
||||||
|
|
||||||
**Servies Note**
|
**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""
|
**Other README's""
|
||||||
TwinVine/packages/vinefeeder/src/vinefeeder/README.md
|
TwinVine/packages/vinefeeder/src/vinefeeder/README.md
|
||||||
|
|||||||
@@ -330,3 +330,8 @@ class TPTV(Service):
|
|||||||
elif 'product' in url: # single item
|
elif 'product' in url: # single item
|
||||||
prod_id = url.split('-')[-1]
|
prod_id = url.split('-')[-1]
|
||||||
return [prod_id]
|
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.")
|
||||||
Reference in New Issue
Block a user