Heroic-gogdl - GOG Downloading module for Heroic Games Launcher

Overview
Comments
  • gogdl fails on dowloading game with non ASCII characters

    gogdl fails on dowloading game with non ASCII characters

    fixes https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/issues/1298

    gogdl/dl/linux_native.py", line 120 subprocess.run(command, shell=True) maybe subprocess.run(command, shell=True, encoding="utf-8") will workt, but probably more than just this location

    opened by Qowy 12
  • App 1207659093 doesn't work with `info`

    App 1207659093 doesn't work with `info`

    [๐Ÿ“ฆ com.heroicgameslauncher.hgl ~]$ /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl info 1207659093 --token="redacted" --lang=en-US --os windows
    [API] INFO: Getting info from products endpoint for id: 1207659093
    [DOWNLOAD_MANAGER] INFO: Checking compatibility of Ultimaโ„ข 9: Ascension with windows
    [DOWNLOAD_MANAGER] INFO: Game is compatible
    [DOWNLOAD_MANAGER] INFO: Depot version: 1
    [API] INFO: Getting Dependencies repository
    [API] INFO: Getting repository manifest
    Traceback (most recent call last):
      File "gogdl/cli.py", line 44, in <module>
      File "gogdl/cli.py", line 41, in main
      File "gogdl/dl/manager.py", line 43, in calculate_download_size
      File "gogdl/dl/manager.py", line 206, in collect_depots
    IndexError: string index out of range
    [5] Failed to execute script 'cli' due to unhandled exception!
    
    opened by miketweaver 6
  • Add functionality to automatically buy free games

    Add functionality to automatically buy free games

    Currently it is necessary to go to the Store tab, scroll to the free games, and buy them manually. It is also necessary to check periodically whether or not new games are present.

    It would be easier if this process was automated.

    opened by Elendil211 1
  • App ID 1434370838 doesn't work

    App ID 1434370838 doesn't work

    C:\Users\user>gogdl.exe info 1434370838 --token="redacted" --lang=en-US --os windows
    [API] INFO: Getting info from products endpoint for id: 1434370838
    [DOWNLOAD_MANAGER] INFO: Checking compatibility of Windward with windows
    [DOWNLOAD_MANAGER] INFO: Game is compatible
    [DOWNLOAD_MANAGER] INFO: Depot version: 2
    [API] INFO: Getting Dependencies repository
    [API] INFO: Getting repository manifest
    Traceback (most recent call last):
      File "gogdl\cli.py", line 44, in <module>
      File "gogdl\cli.py", line 41, in main
      File "gogdl\dl\manager.py", line 43, in calculate_download_size
      File "gogdl\dl\manager.py", line 169, in collect_depots
      File "gogdl\dl\objects.py", line 24, in __init__
    KeyError: 'compressedSize'
    [5756] Failed to execute script 'cli' due to unhandled exception!
    
    opened by miketweaver 1
  • feat: more verbose progress report, implement PR_CHILD_SUBREAPER

    feat: more verbose progress report, implement PR_CHILD_SUBREAPER

    Progress now reports stats like disk activity.

    With this all child processes are handled by gogdl.
    So killing gogdl will kill sub processes etc..

    This change allows us to track all processes. Eliminates risk when process "escapes" and gogdl exits, making Heroic think game is not started.

    Also uses brilliant abstraction used in lutris-wrapper for /proc serialization

    opened by imLinguin 0
  • feat: Added save-clear command

    feat: Added save-clear command

    Why

    There is currently no solution to remove files from the cloud. A user might want to remove their files from the cloud for privacy reasons, or they might have uploaded the wrong folder on accident and included personal information in those files.

    How

    This PR extends the existing command pool by adding a save-clear command to the cli. This command doesn't take all the arguments of save-sync since most of them are unnecessary.

    It requires path, id and --os|platform arguments, and accepts --token and --name arguments.

    The command lists all the files in the cloud and uses the existing remove_file(file) method to send a DELETE request for each. If it succeeds, the cloud bucket for the game will be empty.

    Testing

    I've tested this by uploading a miscelanious amount of random files, verifying they indeed existed by downloading them and then verifying that they would no longer download after running this command.

    Future Plans

    I intend to open a PR in the Heroic Launcher repo if/when this gets merged, adding the ability for Heroic users to clear their cloud saves at any time from the Game Settings.

    opened by Gustash 0
  • [Feature request] Add a command to get download info given a game and an install path

    [Feature request] Add a command to get download info given a game and an install path

    It would be nice to have a command to get information about a potential download of a game in a specific installation directory, without actually installing the game in the process.

    I imagine something like gogdl install-info game --install_dir="some path" (not sure if this follows the project's conventions, just an example)

    The command would output at least this information:

    • Total download size (the complete size of the game, without considering what was already downloaded)
    • Total download size excluding re-usable files found in that installation dir (*)

    (*) to add some clarification here, it's not the size of the uncompressed files in the disk, it's the size of the compressed files that would be downloaded, if the files on disk are uncompressed and the downloaded files are compressed we want the value of the compressed files which is the actual amount we are not re-downloading

    We could include, as extra, some calculations with those numbers:

    • remaining size: total - reusable to know how much is left in absolute units
    • remaining %: (total - reusable) / total to know how much is left in %

    These last extra numbers are not critical for this feature, we can calculate that with the other 2 values anyway

    opened by arielj 0
  • pyinstaller build documentation & glibc 2.29

    pyinstaller build documentation & glibc 2.29

    https://github.com/Heroic-Games-Launcher/heroic-gogdl/blob/main/.github/workflows/build.yaml

    do you have some documentation how i can build this?

    this is all im getting so far

    pyinstaller --onefile --name gogdl ?? gogdl/cli.py it builds but unsuccessfully calls errors when run

    heroic-gogdl/dist $ ./gogdl 
    Traceback (most recent call last):
      File "gogdl/cli.py", line 35, in <module>
      File "gogdl/cli.py", line 16, in main
      File "gogdl/args.py", line 7, in init_parser
      File "argparse.py", line 1716, in add_subparsers
    TypeError: __init__() got an unexpected keyword argument 'required'
    [2028] Failed to execute script 'cli' due to unhandled exception!
    

    issue im having is glibc 2.29 requirements in your CI build environment https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/issues/1015

    opened by arrowgent 5
Releases(v0.4)
  • v0.4(Sep 25, 2022)

    What's Changed

    • fix: most DOSBox issues should be resolved by @imLinguin in https://github.com/Heroic-Games-Launcher/heroic-gogdl/pull/8
    • Cloud saves support by @imLinguin in https://github.com/Heroic-Games-Launcher/heroic-gogdl/pull/9
    • Switch to pyproject.toml by @JakobDev in https://github.com/Heroic-Games-Launcher/heroic-gogdl/pull/11
    • Some code cleanups by @JakobDev in https://github.com/Heroic-Games-Launcher/heroic-gogdl/pull/10
    • Fixed ETA calculation

    New Contributors

    • @JakobDev made their first contribution in https://github.com/Heroic-Games-Launcher/heroic-gogdl/pull/11

    Full Changelog: https://github.com/Heroic-Games-Launcher/heroic-gogdl/compare/v0.3...v0.4

    Source code(tar.gz)
    Source code(zip)
    gogdl-Linux.zip(6.78 MB)
    gogdl-macOS.zip(6.39 MB)
    gogdl-Windows.zip(7.19 MB)
  • v0.3(Jun 5, 2022)

    This release includes some fixes and its partially in Heroic already

    What's Changed

    • [Tech] use as_completed to wait for all threads to complete by @dawidgarus in https://github.com/Heroic-Games-Launcher/heroic-gogdl/pull/4
    • Only try to strip quotes from token if we have a token by @CommandMC in https://github.com/Heroic-Games-Launcher/heroic-gogdl/pull/5

    New Contributors

    • @dawidgarus made their first contribution in https://github.com/Heroic-Games-Launcher/heroic-gogdl/pull/4
    • @CommandMC made their first contribution in https://github.com/Heroic-Games-Launcher/heroic-gogdl/pull/5

    Full Changelog: https://github.com/Heroic-Games-Launcher/heroic-gogdl/compare/v0.2...v0.3

    Source code(tar.gz)
    Source code(zip)
    gogdl-Linux.zip(6.77 MB)
    gogdl-macOS.zip(6.38 MB)
    gogdl-Windows.zip(7.18 MB)
  • v0.2(Mar 6, 2022)

  • v0.1(Feb 24, 2022)

Owner
Paweล‚ Lidwin
cannot read property bio of undefined
Paweล‚ Lidwin
Fully Automated YouTube Channel โ–ถ๏ธwith Added Extra Features.

Fully Automated Youtube Channel โ–’โ–ˆโ–€โ–€โ–ˆ โ–ˆโ–€โ–€โ–ˆ โ–€โ–€โ–ˆโ–€โ–€ โ–€โ–€โ–ˆโ–€โ–€ โ–ˆโ–‘โ–‘โ–ˆ โ–ˆโ–€โ–€โ–„ โ–ˆโ–€โ–€ โ–ˆโ–€โ–€โ–ˆ โ–’โ–ˆโ–€โ–€โ–„ โ–ˆโ–‘โ–‘โ–ˆ โ–‘โ–‘โ–ˆโ–‘โ–‘ โ–‘โ–’โ–ˆโ–‘โ–‘ โ–ˆโ–‘โ–‘โ–ˆ โ–ˆโ–€โ–€โ–„ โ–ˆโ–€โ–€ โ–ˆโ–„โ–„โ–€ โ–’โ–ˆโ–„โ–„โ–ˆ โ–€โ–€โ–€โ–€ โ–‘โ–‘โ–€โ–‘โ–‘ โ–‘โ–’โ–ˆโ–‘โ–‘ โ–‘โ–€โ–€โ–€ โ–€โ–€โ–€โ–‘

sam-sepiol 249 Jan 02, 2023
Youtube-downloader-using-Python - Youtube downloader using Python

Youtube-downloader-using-Python Hii guys !! Fancy to see here Welcome! built by

Lakshmi Deepak 2 Jun 09, 2022
Download images where login is required using har python and js

์ด๋ฏธ์ง€ ๋‹ค์šด๋กœ๋“œ(har, python, js ์‚ฌ์šฉ) ๋กœ๊ทธ์ธ์ด ํ•„์š”ํ•œ ์‚ฌ์ดํŠธ์—์„œ DevTools๋กœ ์ด๋ฏธ์ง€๋ฅผ ๋‹ค์šด๋ฐ›๋Š” ๋ฐฉ๋ฒ•์€ ์กฐ๊ธˆ ๊นŒ๋‹ค๋กœ์› ๋‹ค. ๊ฐ€์žฅ ์‰ฝ๊ฒŒ ํ•  ์ˆ˜ ์žˆ๋Š” ๋ฐฉ๋ฒ•์„ ์ฐพ์•„๋ณด์•˜๋‹ค. ์‚ฌ์šฉ๋ฒ• F12๋ฅผ ๋ˆŒ๋Ÿฌ DevTools๋ฅผ ์‹คํ–‰ Network ํƒญ์œผ๋กœ ์ด๋™ ํŽ˜์ด์ง€ ์ƒˆ๋กœ๊ณ ์นจ

0 Jul 22, 2022
Fetch McDonald invoices from mailbox and merge them to one PDF file.

concatenate Fetch McDonald invoices from mailbox and merge them to one PDF file. Description This script will fetch all McDonald invoice pdfs from a p

3 Oct 06, 2022
๐Ÿ˜ท Dowload dos documentos da CPI da Pandemia

A CPI da Pandemia recebeu milhares de documentos pรบblicos, todos disponibilizados no site do Senado Federal.

Eduardo Cuducos 98 Sep 23, 2022
๐ด ๐‘ก๐‘’๐‘™๐‘’๐‘”๐‘Ÿ๐‘Ž๐‘š ๐‘๐‘œ๐‘ก ๐‘กโ„Ž๐‘Ž๐‘ก ๐‘๐‘Ž๐‘› ๐‘‘๐‘œ๐‘ค๐‘›๐‘™๐‘œ๐‘Ž๐‘‘ ๐‘ฃ๐‘–๐‘‘๐‘’๐‘œ ๐‘Ž๐‘›๐‘‘ ๐‘Ž๐‘ข๐‘‘๐‘–๐‘œ ๐‘“๐‘Ÿ๐‘œ๐‘š ๐‘ฆ๐‘œ๐‘ข๐‘ก๐‘ข๐‘๐‘’ ๐‘Ž๐‘›๐‘‘ ๐‘ฃ๐‘–๐‘‘๐‘’๐‘œ ๐‘ค๐‘’๐‘๐‘ ๐‘–๐‘ก๐‘’๐‘  ๐‘ž๐‘ข๐‘–๐‘๐‘˜๐‘™๐‘ฆ

๐ด ๐‘ก๐‘’๐‘™๐‘’๐‘”๐‘Ÿ๐‘Ž๐‘š ๐‘๐‘œ๐‘ก ๐‘กโ„Ž๐‘Ž๐‘ก ๐‘๐‘Ž๐‘› ๐‘‘๐‘œ๐‘ค๐‘›๐‘™๐‘œ๐‘Ž๐‘‘ ๐‘ฃ๐‘–๐‘‘๐‘’๐‘œ ๐‘Ž๐‘›๐‘‘ ๐‘Ž๐‘ข๐‘‘๐‘–๐‘œ ๐‘“๐‘Ÿ๐‘œ๐‘š ๐‘ฆ๐‘œ๐‘ข๐‘ก๐‘ข๐‘๐‘’ ๐‘Ž๐‘›๐‘‘ ๐‘ฃ๐‘–๐‘‘๐‘’๐‘œ ๐‘ค๐‘’๐‘๐‘ ๐‘–๐‘ก๐‘’๐‘  ๐‘ž๐‘ข๐‘–๐‘๐‘˜๐‘™๐‘ฆ

SOCIAL MECHANIC 2 Aug 04, 2022
Simple Youtube Video Downloader

Simple Youtube Video Downloader Download Youtube video using link and Will output result in D:/ (You can change the path in main.py file) Installation

Hansen Gianto 1 Oct 28, 2021
Ebook downloader built using python

ebook-downloader Getting Started Open a terminal and run the following commands. git clone github.com/georgemunyoro/ebook-downloader cd ./ebook-downlo

George Munyoro 1 Oct 19, 2021
Used Insta Loader to download high quality images from instagram account

Insta Dp Downloader Project Description: In this project, I have used "Insta Loader" to download high quality images from instagram account. You only

Hassan Shahzad 3 Oct 31, 2022
A discord bot for downloading youtube video and audio files

disctube disctube is a discord bot for downloading video and audio files from youtube using python pytube. disclaimer i am not the best python program

razor420 3 Feb 03, 2022
Python module to download all media from a GoFile gallery.

GoFile Downloader Setup First of all, clone this repository : ~$ git clone https://github.com/quatrecentquatre-404/gofile-downloader Second, oh wait..

Quatrecentquatre 61 Jan 01, 2023
Code for "Adversarial Motion Priors Make Good Substitutes for Complex Reward Functions"

Adversarial Motion Priors Make Good Substitutes for Complex Reward Functions Codebase for the "Adversarial Motion Priors Make Good Substitutes for Com

Alejandro Escontrela 54 Dec 13, 2022
Python-Youtube-Downloader - An Open Source Python Youtube Downloader

Python-Youtube-Downloader Hello There This Is An Open Source Python Youtube Down

Flex Tools 3 Jun 14, 2022
๐Ÿ“บ YouTube Song Downloader Bot For Telegram ๐Ÿ”ฎ

๐Ÿ“บ YouTube Song Downloader Bot For Telegram ๐Ÿ”ฎ Powerd By TamilBots.

Tamil Bots 146 Dec 31, 2022
A scriptable music downloader for Qobuz, Tidal, and Deezer

streamrip A scriptable stream downloader for Qobuz, Tidal, and Deezer. Features Downloads tracks, albums, playlists, discographies, and labels from Qo

967 Jan 03, 2023
Google Art Image Downloader Tkinter

Google-Art-Image-Downloader-Tkinter ็”ฑ google-art-downloader ๆ•ดๆ”น็š„ๆ‰น้‡ Google ่‰บๆœฏๅฑ•ๅนณๅฐ้ซ˜ๆธ…ๅ›พ็‰‡ไธ‹่ฝฝ โญ It works perfectly from 2018 year till today, thanks for stars!

PY-GZKY 1 Jan 05, 2022
Shit-fetch - Shitpost fetcher (downloader)

shit-fetch Download shitpost (random) from https://random-shitpost.com/ Usage ./shitfetch.py --nsfw (true/false) --output ~/Downloads (default : ./)

Pinokaille 1 Jan 02, 2022
A youtube downloader, built with flask yt-dlp

Built With Python Flask - The Python micro framework for building web applications. yt-dlp - A youtube-dl fork with additional features and fixes

Abhijith N T 13 Dec 17, 2022
A simple Python program which uses youtube-dl for downloading YouTube videos as mp3 files.

yt-mp3 converter This is a simple Python program which uses youtube-dl for downloading YouTube videos as mp3 files. This program is for you if you are

nostalgicnerdpenguin 1 Oct 24, 2021
S3 file download with Python and access with VBA

S3 file download with Python and access with VBA This simple project is using the following stacks: Python AWS S3 VBA/Excel A Bitcoin API With this st

Julio Cesar Scheidt 0 Dec 07, 2021