[gpodder-devel] Hooks question

  • From: thp at gpodder.org (Thomas Perl)
  • Date: Thu, 31 Mar 2011 19:17:31 +0200

Hi Rodolfo,

On Thu, Mar 31, 2011 at 05:26:13AM -0700, Rodolfo kix Garcia wrote:
> I have some podcasts without id3 info. When the podcast are copied to my
> device, I don't have any information about it, then the device show only
> the filename (a long number like 764261212341766.mp3).
> [...]
> Then I try to write a hook using "on_episode_save", but the hook is called
> before the file is saved, then, I cannot rewrite the ID3 info (the file
> don't exists yet).
> 
> I try to write other hook using "on_file_copied_to_filesystem", but I only
> have the file names (origin, destination), then I cannot access to the
> database to get the info for the ID3 (or I don't know how to do it).
> 
> Any help?

So basically what you would need is a new hook that gets called when the
episode has finished downloading and the downloaded file has been saved
and the filename is known, right? If so, can you please open a feature
request for that on http://bugs.gpodder.org? :)

Thanks,
Thomas



Other related posts: