https://bugs.gpodder.org/show_bug.cgi?id=1676

--- Comment #2 from Cristian Rigamonti <[email protected]> 2012-09-28 23:37:17 BST 
---
Ok, here you are an initial implementation, though incomplete (no GUI,
it needs manual changes to the sqlite database), it works for me (tm).

I'm attaching a patch for the current gpodder-3.3.0.tar.gz package.
It implements the following:

- Database, table "podcast": add a new "update_day" field

  Values 1..7 mean update on Monday..Sunday (à la date.isoweekday())
  The default value = 0 means update daily

  Note: I'm not sure if convert_gpodder2_db() should be changed too,
  please have a look!

- "Search for new episodes" routine: add a new condition, besides checking
  for "pause_subscription", also check if the current day of week matches the
  "update_day", or if update_day = 0

To test it, apply the patch, then use your favourite sqlite tool to set
the value of "podcast.update_day" in the gpodder Database file.

What remains to be done:

- qmlui/__init__.py: patch the podcast update code here too.

  I'm not sure which parts need changes; please QML gurus step in!

- GUI: let the user set his preferred value of update_day for each podcast

  I guess this implies working on gtkui/desktop/channel.py but I just
  don't have a clue about programming the GUI, so don't expect this from
  me, sorry!

- Probably other files should be patched too? I just don't know the whole
  codebase.  Please also note that I didn't touch api.py, as requested in
  the comments in the file.

Hope this helps!

-- 
Configure bugmail: https://bugs.gpodder.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
_______________________________________________
gPodder-Bugs mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/gpodder-bugs

Reply via email to