← Back to team overview

mythbuntu-bugs team mailing list archive

[Bug 648451] Re: Exported shows are allowed to be exported again

 

Being able to re-export the same program, for example after editing a
config, is a useful feature and I would prefer to *not* see it blocked.
But Steve's problem is a genuine one.

Usually the exported program is not added to the RSS feed until after
the export is completed, and so an RSS client wouldn't download a half-
exported program. In Steve's case, the problem was that, because he had
already previously exported the program, it was already in his RSS feed,
and when he set it to export again, it started overwriting the same
file, and there is a few minutes window (depending on how long the
export takes) when an RSS client could attempt to download the file in a
half-finished state.

Regarding a solution, I wonder if a good fix would be to initially
export the program to a temporary folder, or to the normal export folder
but with a different filename, e.g. ending in ".tmp". Only when the
program has completely finished exporting is the file moved to the
normal export folder, or renamed to remove the .tmp, overwriting the
previously-exported file if it exists. This would reduce the window when
it was possible to download a half-exported program from a few minutes
to just a few seconds.

-- 
You received this bug notification because you are a member of Mythbuntu
Bug Team, which is subscribed to mythexport in Ubuntu.
https://bugs.launchpad.net/bugs/648451

Title:
  Exported shows are allowed to be exported again

Status in “mythexport” package in Ubuntu:
  Triaged

Bug description:
  Binary package hint: mythexport

  The subject says it all. I selected a few shows for user job #2 in the
  myth web interface, and a show appeared in the RSS feed before I
  expected. So I performed a  watch 'ls -l /mythexport-dir'  and saw
  that the size was indeed still changing. My daughter downloaded the
  show to her ipod, but didn't get the whole thing. The order should be
  changed.

  CORRECTION:
  What would happen if I use OTG to export a file, then mistakenly select it AGAIN from within the myth web interface? This may have happened, and may have produced the illusion of a poorly ordered export. However, should mythexport notice this and refuse to export again?

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mythexport/+bug/648451/+subscriptions


References