Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add epg.telemach.me #2630

Merged
merged 9 commits into from
Jan 20, 2025
Merged

add epg.telemach.me #2630

merged 9 commits into from
Jan 20, 2025

Conversation

fraudiay79
Copy link
Collaborator

I have the config working for this site, and it also fetches the channels. I need assistance or guidance on how to write a function to get the bearer token. Right now I just added a static token to get the config to work. Please feel free to modify/correct it. Thank you for your help.

URL: https://epg.telemach.me/

@freearhey freearhey self-assigned this Jan 19, 2025
@freearhey freearhey marked this pull request as draft January 19, 2025 12:56
@freearhey
Copy link
Collaborator

Test results:

npm test --- epg.telemach.me

> test
> run-script-os epg.telemach.me


> test:default
> TZ=Pacific/Nauru npx jest --runInBand epg.telemach.me

 PASS  sites/epg.telemach.me/epg.telemach.me.test.js
  ✓ can generate valid url (5 ms)
  ✓ can generate valid request headers (3 ms)
  ✓ can parse response (11 ms)
  ✓ can handle empty guide (1 ms)

Test Suites: 1 passed, 1 total
Tests:       4 passed, 4 total
Snapshots:   0 total
Time:        0.775 s, estimated 1 s
Ran all test suites matching /epg.telemach.me/i.

Grab results:

npm run grab --- --site=epg.telemach.me --maxConnections=10

> grab
> npx tsx scripts/commands/epg/grab.ts --site=epg.telemach.me --maxConnections=10

starting...
config:
  output: guide.xml
  maxConnections: 10
  gzip: false
  site: epg.telemach.me
loading channels...
  found 216 channel(s)
run #1:
  [1/648] epg.telemach.me (bs) - 7 - Jan 20, 2025 (31 programs)
  [2/648] epg.telemach.me (bs) - 7 - Jan 21, 2025 (24 programs)
  [3/648] epg.telemach.me (bs) - 7 - Jan 19, 2025 (30 programs)
  [4/648] epg.telemach.me (bs) - 5 - Jan 21, 2025 (29 programs)
  [5/648] epg.telemach.me (bs) - 5 - Jan 20, 2025 (27 programs)
  [6/648] epg.telemach.me (bs) - 1 - Jan 20, 2025 (42 programs)
  [7/648] epg.telemach.me (bs) - 1 - Jan 21, 2025 (42 programs)
  [8/648] epg.telemach.me (bs) - 1 - Jan 19, 2025 (46 programs)
  [9/648] epg.telemach.me (bs) - 8 - Jan 19, 2025 (14 programs)
...
  [648/648] epg.telemach.me (bs) - 695 - Jan 20, 2025 (48 programs)
  saving to "guide.xml"...
  done in 00h 00m 10s

@freearhey freearhey marked this pull request as ready for review January 19, 2025 13:52
@freearhey freearhey removed their assignment Jan 19, 2025
@fraudiay79
Copy link
Collaborator Author

fraudiay79 commented Jan 19, 2025

I would recommend just creating one config for this instead of multiple (similar to canalplus). The following providers use the same urls (all belong to United Group). It can just be called unitedgroup.rs

telemach.me (Montenegro) - communityId=5&, languageId=10001
telemach.ba (Bosnia) - communityId=12&, languageId=59
telemach.hr (Croatia)
telemach.si (Slovenia) - communityId=8&, languageId=386
nova.gr (Greece) - communityId=35&, languageId=164
sbb.rs (Serbia) - communityId=1, languageId=404
vivacom.bg (Bulgaria)
nettvplus (Cyprus)
Sportklub (Balkans) - ("sk_rs", "404"),
("sk_hr", "181"),
("sk_si", "386"),
("n1_rs", "404"),
("n1_hr", "181"),
("nova_rs", "404")

I'm still working on finding the communityid for Croatia, Bulgaria ,and Cyprus

@freearhey
Copy link
Collaborator

Well, in the case of canalplus.com the config is the same because the site domain is the same, the only difference is the directory name.

https://www.canalplus.com/ht/programme-tv/

And I think if we start breaking down configs by API endpoints instead it will cause more confusion than good. But this is just my personal opinion. If other members of the community decide otherwise, we can always merge the configs into one.

@PopeyeTheSai10r PopeyeTheSai10r changed the title Need help with Telemach.me add epg.telemach.me Jan 20, 2025
@PopeyeTheSai10r PopeyeTheSai10r merged commit 0659801 into iptv-org:master Jan 20, 2025
2 checks passed
@fraudiay79 fraudiay79 deleted the telemach.me branch February 10, 2025 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants