Results 1 to 1 of 1

Thread: Bash script(KDE) to download covers

  1. #1
    Junior Member
    Join Date
    Apr 2010
    Posts
    1
    Thanks
    0
    Thanked 1 Time in 1 Post

    Lightbulb Bash script(KDE) to download covers

    This script will promt you for GameID and Target Directory(where you want to place the images) and then download them for you. Great for people that does not have an internet connection for thire Wii.

    Code:
    #!/bin/bash
    # kde_get_wii_covers.sh
    # download the wii covers for the game id
    
    lang="EN"
    game_id=`kdialog --title "Enter Game ID" --inputbox "ID:"`
    
    if [ $? = 0 ]; then
      target_dir=`kdialog --title "Download Target" --getexistingdirectory "~/"`
      if [ $? = 0 ]; then
        mkdir -p "$target_dir/artwork/cover/"
        mkdir -p "$target_dir/artwork/cover3D/"
        mkdir -p "$target_dir/artwork/coverfull/"
        mkdir -p "$target_dir/artwork/disc/"
    
        wget -nd -P "$target_dir/artwork/cover/" http://wiitdb.com/wiitdb/artwork/cover/$lang/$game_id.png
        wget -nd -P "$target_dir/artwork/cover3D/" http://wiitdb.com/wiitdb/artwork/cover3D/$lang/$game_id.png
        wget -nd -P "$target_dir/artwork/coverfull/" http://wiitdb.com/wiitdb/artwork/coverfull/$lang/$game_id.png
        wget -nd -P "$target_dir/artwork/coverfull/" http://wiitdb.com/wiitdb/artwork/coverfullHQ/$lang/$game_id.png
    
        wget -nd -P "$target_dir/artwork/disc/" http://wiitdb.com/wiitdb/artwork/disccustom/$lang/$game_id.png
        wget -nd -P "$target_dir/artwork/disc/" http://wiitdb.com/wiitdb/artwork/disc/$lang/$game_id.png
    
        echo " $game_id Coverart Downloaded"
      else
        echo " Aborted!!"
      fi
    else
        echo " Aborted!!"
    fi

  2. 1 User Says Thank You Lilltiger For This Useful Post


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •