Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion APLSource/Version.aplf
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version←Version
version←'3.25.0'
version←'3.26.0'
9 changes: 0 additions & 9 deletions APLSource/import/youtube/ChooseBestThumbnail.aplf

This file was deleted.

5 changes: 3 additions & 2 deletions APLSource/import/youtube/GetVideos.aplf
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
GetVideos←{
50<≢⍵:(∇ 50↑⍵)⍪∇ 50↓⍵ ⍝ API limit. Download 50 videos at a time
⍺←##.##.GLOBAL.secrets.thumbnails_root
50<≢⍵:(⍺ ∇ 50↑⍵)⍪⍺ ∇ 50↓⍵ ⍝ API limit. Download 50 videos at a time
0=≢⍵:''
q←url,'videos'
q,←'?id=',3↓∊'%2C'∘,¨⊆⍵
Expand All @@ -14,6 +15,6 @@
id←{0∊⍴⍵:⍬ ⋄ ⍵.id}r.Data.items
_←{0=≢⍵:'' ⋄ ⎕SIGNAL⊂('EN'404)('Message' ('YouTube videos ID= (',⍵,') not available.'))('Vendor' (#.DCMS.GetEnv'URL'))}1↓∊','∘,¨⍵/⍨~⍵∊id
res←'maxres' 'medium' 'default' 'high' 'standard'
r.Data.items.thumbnail←res ChooseBestThumbnail r.Data.items
r.Data.items.thumbnail←⍺∘,¨⊆⍵,¨⊂'.jpg'
↑r.Data.items.((⊂id),snippet.(title description channelId channelTitle ⍬ publishedAt),⊂thumbnail) ⍝ ⍬ for category_id
}