Preserve Uncut filenames
Closed this issue · 1 comments
cavis commented
Thinking of 2 cases:
- If you upload a single Uncut segment and slice that, the resulting Contents all have an
original_url
pointing to the randomized-guid S3 filename of the Uncut. So you end up with a Dovetail enclosure URL filename that's just a random guid. - Similarly, if you upload a Content segment and convert it to Uncut later ... the Uncut ends up with an
original_url
pointing to a randomized guid S3 filename.
cavis commented
For case (1), I solved it by reusing the original_url https://github.com/PRX/feeder.prx.org/blob/main/app/models/episode.rb#L208. At least if the episode is fresh.
I didn't solve case (2). But that's far less likely to happen, and I don't think we generally care about those file names anyways.
Calling this good.