Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 29 additions & 2 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,17 @@ on `127.0.0.1:4323`. It:
touches the shared resolve cache or the group state (the player
keeps its address); geil needs no token. The ping itself is
`_request_addon_sig()`, shared with `refresh_addon_sig_if_needed()`.
- A token only where it is needed: `token_required` (set by
`_install_catalog()`: a Vavoo list with an address that is not one of
vavoo.to's channel index; an empty Vavoo list counts), read through
`needs_token()` (never on Geil), is what `/status` / `/health` say
and what the token monitor
(`_token_monitor_tick()`) renews for - not on Geil's list nor the
index, where it was pinged every few minutes for nothing. A
recording's keep-alive asks `channel_needs_token(channel_id)` (its
sources, `_channel_candidates()`) before `own_signature()`. The
status line names the source by `catalog_source`
(`SOURCE_NAMES`), never by `token_required`.
- `/file?id=&offset=[&follow=1]` serves only ids registered with
`vavoo_record.register_file()` - never a path (the proxy answers the
LAN for bouquets). `offset` is rounded down to a 188-byte packet, a
Expand Down Expand Up @@ -387,14 +398,30 @@ on `127.0.0.1:4323`. It:
- `prefetch(channel_id)`: the player (`Playstream2._schedule_prefetch()`,
3 s after `zap_to()`, the next channel in the zap's direction - CH+
+1, CH- -1, the rest +1) has the address resolved ahead, into the
resolve cache. Geil only (Vavoo plays one stream per token: no
resolve on the shared one); a group's first source by
resolve cache. Geil and vavoo.to's channel index only (Vavoo's API
plays one stream per token: no resolve on the shared one); a group's
first source by
`_ordered_group_members()` (read-only: no `_group_state`); no stream
count; one at a time (`_prefetch_lock`).
- Falls back from `vavoo.to` to `kool.to` on HTTP 451, and (`load_catalog()`
over `_load_catalog_site()`) for the catalog on any first-page
failure: an HTTP 5xx (asked once more first), no connection, a broken
answer.
- When no site gives Vavoo's catalog API (`/mediahubmx-catalog.json`
answered HTTP 500 "Internal error" on both, to every token and
request, 2026-11), `load_catalog()` takes vavoo.to's channel index
(`load_vavoo_index()`: `VAVOO_INDEX_PATH` `/live2/index?...&output=
json` on `index_site`, user-agent `VAVOO/2.6`, no token; kool.to has
none). Its entries become catalog channels: the id from the play
address, `fix_geil_name()` on the name ("(1)/(6)/(7)" -> ".b/.c/.s",
so sources group as Geil's), `tvg_id` as `epg_id`, at least 100. Its
failure is only logged (`_index_error`): the status line keeps the
API's error. Its play addresses (`_is_vavoo_index_url()`,
`/live2/play3/<n>.m3u8`) answer a 302 to a stream server, a new
address each time: `_resolve_vavoo_index()` asks once (no redirect
followed) and caches the `Location` like any resolve - no token for
the player, a recording (`resolve_own()`) or `prefetch()`
(`tests/test_vavoo_index.py`).
- It listens on every address (bouquets and `/playlist.m3u` serve other
devices), but its controls (`LOCAL_ONLY_PATHS`: `/shutdown`,
`/refresh_token`) answer only the box itself (`is_loopback()`, 403
Expand Down
2 changes: 1 addition & 1 deletion CONTROL/control
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: enigma2-plugin-extensions-vavoo
Version: 1.92
Version: 1.93
Section: misc
Priority: optional
Architecture: all
Expand Down
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<p align="center">
<a href="https://github.com/Belfagor2005/vavoo">
<img src="https://img.shields.io/badge/Version-1.92-blue.svg" alt="Version">
<img src="https://img.shields.io/badge/Version-1.93-blue.svg" alt="Version">
</a>

<a href="https://www.enigma2.net">
Expand Down Expand Up @@ -447,6 +447,14 @@ The local proxy has no on/off switch: every channel list and stream goes through
minutes; its own list replaces the lent one as soon as it answers.
A server error (HTTP 5xx) or a lost connection on vavoo.to tries
kool.to too (before, only an HTTP 451 did).
- **Vavoo's catalog down**: when neither vavoo.to nor kool.to gives
Vavoo's catalog (both answered HTTP 500 "Internal error" to every
request in November 2026), the proxy loads vavoo.to's own channel
index instead (`/live2/index`, about 10 000 channels in 17
countries, no token). Its channels play straight from vavoo.to, with
no token at all - recordings and the zap ahead too. vavoo.log says
"[Vavoo] catalog API: vavoo.to HTTP 500, kool.to HTTP 500 - using
vavoo.to's channel index: n channels".
- **One proxy per box**: `/status` says which copy of the plugin serves
(`instance`, `pid`, `module`, `version`). If the plugin's modules are
loaded twice in one Enigma2 (seen on a box: the second copy held the
Expand Down Expand Up @@ -506,7 +514,7 @@ The local proxy has no on/off switch: every channel list and stream goes through
version.
This can't recover a source
that resolved fine but is slow/buffering - pick another one for that.
- **Token Monitor**: Background thread that checks token age every 60 seconds
- **Token Monitor**: Background thread that checks token age every 60 seconds, and renews it only while the list in use plays through Vavoo's token (not on Geil's list nor vavoo.to's channel index - `/status` says `token_required`); recordings keep a token of their own only where it is needed too
- **Active Stream Tracking**: Notifies proxy when streams start/end for better resource management

### EPG Integration
Expand Down
6 changes: 3 additions & 3 deletions enigma2-plugin-extensions-vavoo.bb
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ inherit allarch gitpkgv python3-compileall
# CONTROL/control's Version:, and installer.sh's version= - none of
# these are auto-synced (see CLAUDE.md), and this file previously
# stayed at the placeholder "1.0" indefinitely.
PV = "1.92+git${SRCPV}"
PKGV = "1.92+git${GITPKGV}"
VER = "1.92"
PV = "1.93+git${SRCPV}"
PKGV = "1.93+git${GITPKGV}"
VER = "1.93"
PR = "r0"

SRC_URI = "git://github.com/OwnerPlugins/vavoo.git;protocol=https;branch=main"
Expand Down
19 changes: 8 additions & 11 deletions installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,14 @@
# Log: /tmp/vavoo_install.log (copia anche in /home/root/ a fine run)
# =====================================================================

version='1.92'
changelog="- Exported bouquets: every source of a channel (.b, .c, .d) as its own
channel; every Vavoo bouquet named Vavoo, a star and the country, as
the favourites one
- Favourites by country: a title per country in the Favourites list
(MENU - Move this country), and the favourites as one bouquet with a
title per country, kept the same as the list
- The scheduled bouquet update no longer hangs until a reboot
- Smoother playback: the plugin's background work gives way while a
channel plays
- Python 2 fixes (bouquets, EPG files with accents)"
version='1.93'
changelog="- Vavoo/Kool only has channels again: Vavoo's catalog answers an error
to everyone, so the plugin takes vavoo.to's own channel list (about
10 000 channels, 17 countries) - played with no token at all
- No token asked for nothing: only while the list in use needs one
- The EPG channel database is updated every week again and read from
this plugin's own repository (more channels with a guide)
- Old code nothing used removed"

LOGFILE=/tmp/vavoo_install.log

Expand Down
2 changes: 1 addition & 1 deletion tests/py2_smoke.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def run(what, fn):

print("== initials, colours, search, drawn pictures")
check(run("initials", lambda: store.initials(U)) == u"RS", "initials of %r" % U)
run("colour", lambda: store.color_for(B))
run("colour", lambda: store.hue_for(B))
items = [U, u"TF1 Séries", "Canale 5"]
found = run("search", lambda: store.search(items, u"sudtirol"))
check(found == [U], "search without the accent finds it: %r" % (found,))
Expand Down
3 changes: 2 additions & 1 deletion tests/run_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@
"test_settings_welcome",
"test_speedups",
"test_store",
"test_two_copies")
"test_two_copies",
"test_vavoo_index")
TIMEOUT = 600


Expand Down
2 changes: 2 additions & 0 deletions tests/test_catalog_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ def fresh(geil=None):
p.base_sites = list(SITES)
p.base_site_index = 0
p._update_endpoints()
# (vavoo.to's channel index on the fake site too: it answers no GET)
p.index_site = SITES[0]

def fake_geil():
if geil:
Expand Down
4 changes: 0 additions & 4 deletions tests/test_py2_separators.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@
"hierarchical") == "userbouquet.vavoo_italy_sport.tv",
"_build_bouquet_filename(%s)" %
label)
check(
bm._bouquet_country_prefix(name) == "italy",
"_bouquet_country_prefix(%s)" %
label)
check(
bm.is_bouquet_exported(name) in (
True,
Expand Down
Loading
Loading