File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -66,15 +66,13 @@ def fill_missing_details
66
66
self . url = video . url
67
67
end
68
68
69
- if success || ( created_at && created_at < 1 . week . ago )
70
- self . reachable = success
71
- self . author = info [ "uploader" ] || ''
72
- self . title = [ feed &.title , info [ "title" ] ] . select ( &:present? ) . join ( " - " )
73
- self . published_at = info [ "upload_date" ] && Date . parse ( info [ "upload_date" ] )
74
- self . description = "Original Video: #{ url } \n Published At: #{ published_at } \n #{ info [ "description" ] } "
75
- self . duration_seconds = info [ "duration" ] || 0
76
- self . thumbnail_url = info [ "thumbnails" ] &.last &.fetch ( "url" , "" ) || ''
77
- end
69
+ self . reachable = success
70
+ self . author = info [ "uploader" ] || ''
71
+ self . title = [ info [ "is_live" ] && "[LIVE]" , feed &.title , info [ "title" ] ] . select ( &:present? ) . join ( " - " )
72
+ self . published_at = info [ "upload_date" ] && Date . parse ( info [ "upload_date" ] )
73
+ self . description = "Original Video: #{ url } \n Published At: #{ published_at } \n #{ info [ "description" ] } "
74
+ self . duration_seconds = info [ "duration" ]
75
+ self . thumbnail_url = info [ "thumbnails" ] &.last &.fetch ( "url" , "" ) || ''
78
76
end
79
77
save!
80
78
end
You can’t perform that action at this time.
0 commit comments