Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix Magpi-special editions #79

Closed
joergi opened this issue Sep 23, 2022 · 0 comments
Closed

fix Magpi-special editions #79

joergi opened this issue Sep 23, 2022 · 0 comments
Labels
bug Hacktoberfest Hacktoberfest https://hacktoberfest.digitalocean.com/ help wanted Linux OS Mac OS

Comments

@joergi
Copy link
Owner

joergi commented Sep 23, 2022

somehow the download of special editions are not working
if you go the url https://magpi.raspberrypi.org/books/essentials-bash-vol1/pdf the website wants you first so spend some money, or you can click to direct download.

somehow the code of the downloader needs to be changed to accept these links too.

 printf -v page_url $downloadUrl "$i"
		pdf_url=`curl -sf $page_url | grep "c-link\"" | sed 's/^.*href=\"//' | sed 's/\(\?.*\)\?">.*$//' | sed "s#^\(/.*\)#$siteUrl\1#"`
		wget -N $pdf_url -P $outputDir
		i=$(( i+1 ))
@joergi joergi added the Hacktoberfest Hacktoberfest https://hacktoberfest.digitalocean.com/ label Sep 23, 2022
joergi added a commit that referenced this issue Oct 14, 2022
#79

- use separate files for testing
  - regular issues
  - different language issues
  - special issues
  - educational issues
joergi added a commit that referenced this issue Oct 14, 2022
#79

- use separate files for testing
  - regular issues
  - different language issues
  - special issues
  - educational issues
joergi added a commit that referenced this issue Oct 14, 2022
#79

- use separate files for testing
  - regular issues
  - different language issues
  - special issues
  - educational issues
joergi added a commit that referenced this issue Oct 14, 2022
joergi added a commit that referenced this issue Oct 14, 2022
joergi added a commit that referenced this issue Oct 14, 2022
joergi added a commit that referenced this issue Oct 14, 2022
joergi added a commit that referenced this issue Oct 14, 2022
joergi added a commit that referenced this issue Oct 14, 2022
joergi added a commit to joergi/downloader that referenced this issue Oct 14, 2022
hopefully it fixes MacOs downloads for
joergi/MagPiDownloader#79
joergi added a commit that referenced this issue Oct 14, 2022
joergi added a commit that referenced this issue Oct 14, 2022
joergi added a commit that referenced this issue Oct 14, 2022
joergi added a commit that referenced this issue Oct 14, 2022
joergi added a commit that referenced this issue Oct 14, 2022
joergi added a commit that referenced this issue Oct 14, 2022
joergi added a commit that referenced this issue Oct 14, 2022
joergi added a commit that referenced this issue Oct 14, 2022
@joergi joergi closed this as completed in c7ccc19 Oct 14, 2022
joergi added a commit to joergi/downloader that referenced this issue Oct 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Hacktoberfest Hacktoberfest https://hacktoberfest.digitalocean.com/ help wanted Linux OS Mac OS
Projects
None yet
Development

No branches or pull requests

1 participant