Skip to content

Commit

Permalink
Put videos that became public at the top
Browse files Browse the repository at this point in the history
  • Loading branch information
tsubery committed Dec 9, 2024
1 parent 4ffffee commit 1a9e04d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/library.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def generate_podcast(current_url, audio_url:, video_url:)
channel['itunes'].explicit('no')

# id: asc allows stable sort for test with same timestamp
media_items.order(created_at: :desc, id: :asc).limit(episode_count).flat_map do |media_item|
media_items.order(updated_at: :desc, id: :asc).limit(episode_count).flat_map do |media_item|
[
[audio, audio_url.call(media_item.id), 'audio/mpeg'],
[video, video_url.call(media_item.id), 'video/mpeg']
Expand Down

0 comments on commit 1a9e04d

Please sign in to comment.