Skip to content

Commit

Permalink
Merge pull request #160 from harvard-lil/dependencies-update-06-21-2023
Browse files Browse the repository at this point in the history
yt-dlp upgrade, non-web content detection tweak
  • Loading branch information
matteocargnelutti committed Jun 21, 2023
2 parents 07e5ab9 + 5f4c10d commit 370048d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions Scoop.js
Original file line number Diff line number Diff line change
Expand Up @@ -690,8 +690,13 @@ export class Scoop {
this.targetUrlContentType = contentType
}

// If text/html, bail from non-web content capture process.
// Scoop.capture will go based on the value of `this.targeredUrlIsWebPage`.
// If text/html or no content-type, bail from non-web content capture process.
// Scoop.capture will go based on the value of `this.targetUrlIsWebPage`.
if (!contentType) {
this.log.info('Requested URL is assumed to be a web page (no content-type found)')
return
}

if (contentType?.startsWith('text/html')) {
this.log.info('Requested URL is a web page')
return
Expand Down
2 changes: 1 addition & 1 deletion postinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
mkdir ./executables/;

# Pull yt-dlp (v2023.03.04)
curl -L https://github.com/yt-dlp/yt-dlp/releases/download/2023.03.04/yt-dlp > ./executables/yt-dlp;
curl -L https://github.com/yt-dlp/yt-dlp/releases/download/2023.06.21/yt-dlp > ./executables/yt-dlp;
chmod a+x ./executables/yt-dlp;

# Pull crip (v2.1.0)
Expand Down

0 comments on commit 370048d

Please sign in to comment.