Skip to content

zap2it - #4608

Closed
th0ma7 wants to merge 18 commits into
SynoCommunity:masterfrom
th0ma7:zap2it
Closed

zap2it#4608
th0ma7 wants to merge 18 commits into
SynoCommunity:masterfrom
th0ma7:zap2it

Conversation

@th0ma7

@th0ma7 th0ma7 commented May 6, 2021 •

Copy link
Copy Markdown
Contributor

Motivation: Provide a EPG grabber for zap2it package in order to generate XMLTV file output for usage with Jellyfin / Emby / TVheadEnd. This is also in preparation for DSM7 upgrade where current EPG grabber uses perl and requires manually compiled CPAN modules making it rather complex to maintain. Current solution is looking into using a python3 option.
Linked issues: daniel-widrick/zap2it-GuideScraping#7

Checklist

  • Build rule all-supported completed successfully
  • Package upgrade completed successfully
  • New installation of package completed successfully

@th0ma7 th0ma7 self-assigned this May 6, 2021
@th0ma7

th0ma7 commented May 12, 2021

Copy link
Copy Markdown
Contributor Author

@hgy59 any idea how to create a cron job at install time? (e.g. scheduled task I guess from the admin interface).

@th0ma7

th0ma7 commented May 13, 2021 •

Copy link
Copy Markdown
Contributor Author

cronjob hint... I first started looking into synoschedtask but I revisited synocrond and found in the binary paths towards system-type cron jobs where there are examples :

/usr/local/etc/synocron.d
/usr/syno/etc/synocron.d
/usr/syno/share/synocron.d

Where I'm testing the following under /usr/local/etc/synocron.d :

/usr/local/etc/synocron.d# cat zap2it.conf 
[
   {
      "cmd" : "/var/packages/zap2it/target/bin/zap2it-GuideScrape.py -i /var/packages/zap2it/target/etc/zap2itconfig.ini -o /var/packages/zap2it/target/var/xmlguide.xmltv",
      "crontab" : "0 */8 * * *",
      "name" : "zap2it",
      "package_username" : "sc-zap2it",
      "period" : "crontab",
      "user" : "package"
   }
]

Seems to require a service restart:

$ sudo synoservice --status synocrond
Service [synocrond] status=[enable]
required upstart job: 
	[synocrond] is start. 
=======================================
$ sudo synoservice --restart synocrond

@th0ma7 th0ma7 changed the title [WIP] Zap2it zap2it May 19, 2021
@th0ma7
th0ma7 requested review from hgy59 and ymartin59 May 19, 2021 00:17
Comment thread spk/zap2it/Makefile Resolved
Comment thread spk/zap2it/src/service-setup.sh Resolved
Comment thread spk/zap2it/src/service-setup.sh Resolved
@th0ma7

th0ma7 commented Jun 14, 2021

Copy link
Copy Markdown
Contributor Author

Closing PR as superseded with #4680

@th0ma7 th0ma7 closed this Jun 14, 2021
@th0ma7
th0ma7 deleted the zap2it branch March 29, 2026 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants