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

zap2it #4608

Closed
wants to merge 18 commits into from
Closed

zap2it #4608

wants to merge 18 commits into from

Conversation

th0ma7
Copy link
Contributor

@th0ma7 th0ma7 commented May 6, 2021

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
Copy link
Contributor Author

th0ma7 commented May 12, 2021

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

@th0ma7
Copy link
Contributor Author

th0ma7 commented May 13, 2021

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
spk/zap2it/Makefile Outdated Show resolved Hide resolved
spk/zap2it/src/service-setup.sh Show resolved Hide resolved
spk/zap2it/src/service-setup.sh Outdated Show resolved Hide resolved
@th0ma7
Copy link
Contributor Author

th0ma7 commented Jun 14, 2021

Closing PR as superseded with #4680

@th0ma7 th0ma7 closed this Jun 14, 2021
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