You are here

[Fixed] gPodder settings reset

28 posts / 0 new
Last post
nascent
nascent's picture
Offline
Last seen: 1 year 1 month ago
Joined: 2008-12-15 07:40
[Fixed] gPodder settings reset

I used to be able to change the settings of gPodder, but now If I change the download path and close gpodder, upon reopen the download path is reset. I understand the reason for the default path. But surely removing the ability to set a path isn't desired? If a user wishes to point the path to a different drive/path then this shouldn't be ignored upon restart?

John T. Haller
John T. Haller's picture
Offline
Last seen: 1 hour 38 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Download Path

The download path has always been fixed. This is due to a bug within gPodder itself.

Sometimes, the impossible can become possible, if you're awesome!

nascent
nascent's picture
Offline
Last seen: 1 year 1 month ago
Joined: 2008-12-15 07:40
Damn. I've not noticed the

Damn. I've not noticed the issue before. My usb drive has been filling up by podcasts only recently. normally i have it downlaode to a different drive.

Is there no fix or hack I can do?

J_P_77
Offline
Last seen: 12 years 5 months ago
Joined: 2012-05-12 06:39
My Hack

WARNING: USE AT YOUR OWN RISK

For Version gPodder 3.1.0

Change Files
    1. gPodderPortable\App\AppInfo\Launcher\gPodderPortable.ini
        [Environment]
        GPODDER_DOWNLOAD_DIR=(Your directory that you wish to download podcast too)
        
    2. gPodderPortable\App\gPodder\src\gpodder\__init__.py
        Replace Code Block:

            # Function to set a new gPodder home folder
            def set_home(new_home):
                global home, config_file, database_file, downloads
                home = os.path.abspath(new_home)

                config_file = os.path.join(home, 'Settings.json')
                database_file = os.path.join(home, 'Database')
                downloads = os.path.join(home, 'Downloads')

            # Default locations for configuration and data files
            default_home = os.path.expanduser(os.path.join('~', 'gPodder'))
            set_home(os.environ.get('GPODDER_HOME', default_home))

         With:
            
            # Default locations for configuration and data files
            default_home = os.path.expanduser(os.path.join('~', 'gPodder'))

            if os.path.exists(os.environ.get('GPODDER_HOME')) and os.path.isdir(os.environ.get('GPODDER_HOME')):
                home = os.path.abspath(os.environ.get('GPODDER_HOME'));
            else:
                home = os.path.abspath(default_home)

            config_file = os.path.join(home, 'Settings.json')
            database_file = os.path.join(home, 'Database')

            # Sets download location
            if os.path.exists(os.environ.get('GPODDER_DOWNLOAD_DIR')) and os.path.isdir(os.environ.get('GPODDER_DOWNLOAD_DIR')):
                downloads = os.path.abspath(os.environ.get('GPODDER_DOWNLOAD_DIR'))
            else:
                downloads = os.path.join(home, 'Downloads')
nascent
nascent's picture
Offline
Last seen: 1 year 1 month ago
Joined: 2008-12-15 07:40
Many thanks for the tip. I

Many thanks for the tip. I did change #1, although I see no src directory for change #2. I assume that's only to recompile it. Is the first change alone not enough to do as desired?

J_P_77
Offline
Last seen: 12 years 5 months ago
Joined: 2012-05-12 06:39
Environmental variable
Environmental variable GPODDER_DOWNLOAD_DIR does not exists 
in gPodder 3.1.x. It did in gPodder 2.x but, It did not work 
correctly. My fix adds the environmental variable 
GPODDER_DOWNLOAD_DIR and only works for gPodder 3.1.x. No 
Recompiling Necessary. If you don't see the src folder, you 
don't have version gPodder 3.1.x
John T. Haller
John T. Haller's picture
Offline
Last seen: 1 hour 38 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Switch Up

Could you rework your patch so we can just add a couple lines to the end. Basically, just a simple check for the env var and then replace the current downloads var. That way if they alter the code, our patch will still be the same (adding a few lines right after theirs).

Sometimes, the impossible can become possible, if you're awesome!

J_P_77
Offline
Last seen: 12 years 5 months ago
Joined: 2012-05-12 06:39
Your solution will work
Your solution will work something like this
    # Sets download location
    if os.environ.get('GPODDER_DOWNLOAD_DIR', None) is not None:
        if os.path.exists(os.environ.get('GPODDER_DOWNLOAD_DIR')) and os.path.isdir(os.environ.get('GPODDER_DOWNLOAD_DIR')):
            downloads = os.path.abspath(os.environ.get('GPODDER_DOWNLOAD_DIR'))

right after this

    # Default locations for configuration and data files
    default_home = os.path.expanduser(os.path.join('~', 'gPodder'))
    set_home(os.environ.get('GPODDER_HOME', default_home))
nascent
nascent's picture
Offline
Last seen: 1 year 1 month ago
Joined: 2008-12-15 07:40
I think I figured out why

I think I must've had a symlink to point to the desired location. and during my windows reinstall forgot to set up the symlink. It'd still be nice to have a better way of doing it via setting though, s when taking it round on usb, symlinks arent a possibility.

J_P_77
Offline
Last seen: 12 years 5 months ago
Joined: 2012-05-12 06:39
Forked

For those who are interested i have forked gPodder, https://github.com/J-P-77/gpodder and have applied my patch

nascent
nascent's picture
Offline
Last seen: 1 year 1 month ago
Joined: 2008-12-15 07:40
That's awesome. Thank you

That's awesome. Thank you very much!

John T. Haller
John T. Haller's picture
Offline
Last seen: 1 hour 38 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
New Download Setting Added in 3.1.2

I've added a new advanced download setting to gPodder Portable 3.1.2. In the gPodderPortable.ini file there are 3 new options. They are explained in the new example INI included in Other\Source, which I have also included here:

[gPodderPortable]
AdditionalParameters=
DisableSplashScreen=false
RunLocally=false

# The above options are explained in the included readme.txt
# This INI file is an example only and is not used unless it is placed as described in the included readme.txt

# DownloadDirFullPath=X:\FullPath\To\Downloads
# DownloadDirPartialPath=Full\Path\From\Drive\Root\To\Downloads
# DownloadDirPortableAppsRootPath=Path\From\Platform\Root\To\Downloads

# The above allow you to custom redirect the location gPodder Portable uses for downloads
# it is meant for advanced users.  Only one of the 3 options should be used by removing the # and space from the line
# the first option is a full path to downloads and can be on another drive
# the second is a path relative to the drive letter X:\
# the 3rd is relative to the root of a PortableApps.com Platform install (where Start.exe is)

These 3 options will let you place your downloads directory on another drive, in a directory relative to the root of the drive or in a directory relative to the PortableApps.com Platform root where Start.exe (especially useful for custom locations in conjunction with something like DropBox).

Sometimes, the impossible can become possible, if you're awesome!

nascent
nascent's picture
Offline
Last seen: 1 year 1 month ago
Joined: 2008-12-15 07:40
3.3.0

I see with 3.3.0 the fix:
Respect GPODDER_DOWNLOAD_DIR in the environment (bug 466)
is included.

Does this affect gpodder portable, should I be doing anything special to choose the download directory now?

Thanks.

John T. Haller
John T. Haller's picture
Offline
Last seen: 1 hour 38 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Nope

It's still hardwired to the exact same place as in 3.2.0. gPodder still has no GUI for adjusting the download directory and no internal setting for the location. It's just an environment variable for advanced users to set a full path to an alternate download directory. It is not used by gPodder Portable.

Sometimes, the impossible can become possible, if you're awesome!

spud77
Offline
Last seen: 11 years 11 months ago
Joined: 2013-01-20 13:30
User-Defined Download Directory

Pardon my ignorance, what is the current method (if any) to have gpodder download podcasts to a user-defined directory?

Thanks for your future reply and all your hardwork on portableapps,
spud77

John T. Haller
John T. Haller's picture
Offline
Last seen: 1 hour 38 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Fixed

The directory is fixed to the config\Downloads directory in the portable version. We use the GPODDER_DOWNLOAD_DIR environment variable to point it there now. You could, in theory, edit the gPodderPortable.ini file within the App\AppInfo\Launcher directory and change the GPODDER_DOWNLOAD_DIR=%PAL:DataDir%\config\Downloads line to something else. But it would be reset on each upgrade.

Sometimes, the impossible can become possible, if you're awesome!

usrnm
Offline
Last seen: 10 years 3 months ago
Joined: 2013-01-20 16:49
yeah, this should be fixed so

yeah, this should be fixed so its a GUI option. nobody wants GB's of data downloaded to the same location they keep their portable app stuff. Sad

can't believe it wasn't in the original installer program either.

John T. Haller
John T. Haller's picture
Offline
Last seen: 1 hour 38 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Portable You Can

You can specify it in the portable version at least using the additions I made:
https://portableapps.com/node/32057#comment-195919

Sometimes, the impossible can become possible, if you're awesome!

Phil Bingham
Offline
Last seen: 4 years 1 week ago
Joined: 2010-03-24 08:10
gPodder - trying to download to a different drive

Old post I know, but I was hoping the ini file method still worked.

It doesn't - or at least I didn't get it to work:

- copied gPodderPortable.ini to ...\PortableApps\gPodderPortable (beside gPodderPortable.exe)
- edited line 'DownloadDirFullPath=' (removed comment, gave it a full path)

Started gPodder, tried downloading something... still goes to the PortableApps folder.
Tried adding a new podcast (in case it picked up the path at subscription time). Same outcome.
Don't seem to be able to change the download path for each podcast individually/manually either.

Am I doing something wrong or is it broken in 3.8?

I'm trying to switch podcast manager and my GBs of podcasts will easily exceed my dropbox capacity (don't want them there anyway).

Hope you can help...

Phil

John T. Haller
John T. Haller's picture
Offline
Last seen: 1 hour 38 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Must Be Data

It only works with the gPodderPortable\Data path.

Sometimes, the impossible can become possible, if you're awesome!

Phil Bingham
Offline
Last seen: 4 years 1 week ago
Joined: 2010-03-24 08:10
Hi John,

Hi John,

Your quick response much appreciated, and can I say you're dong a fantastic job with PortableApps - I support as I can.

Apologies however - not sure I understood. Do you mean the ini file needs to go into that folder or "full path to downloads and can be on another drive" setting either doesn't work any more (or never did)?

Phil

Badger
Offline
Last seen: 2 years 6 months ago
Joined: 2022-06-13 08:34
gPodder 3.10.21

If anyone is still linked to this topic I wonder whether you have any advice on how to set-up gPodderPortable for Windows 11? Specifically, to identify a Download directory that is not under C:\Apps\gPodderPortable\Config\Downloads? I want to point to a directory on my home network which is mapped as Drive (Z).

I have moved my version 2 (from 1991) of gPodderPortable to my new W11 PC and it works fine because it has a customisable C:\Apps\gPodderPortable\App\AppInfo\Launcher\gPodderPortable.ini file. I would rather be using a younger version, but only if I can select the Download directory.

John T. Haller
John T. Haller's picture
Offline
Last seen: 1 hour 38 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
New Options

There's a different set of options in the newer version. You can use DownloadDirFullPath, DownloadDirPartialPath, or DownloadDirPortableAppsRootPath. For your specific instance, you'd want the first. Copy the gPodderPortable.ini file from gPodderPortable\Other\Source to gPodderPortable. Add this line to the end and edit as desired:

DownloadDirFullPath=Z:\MyDownloads\FullPath

It should be used going forward and you'll have no need to customize the launcher INI after each upgrade. All 3 options are explained in the included example INI.

Sometimes, the impossible can become possible, if you're awesome!

Badger
Offline
Last seen: 2 years 6 months ago
Joined: 2022-06-13 08:34
Downloads still going to \gPodderPortable\Data\config\Downloads

Thanks for the answer. Can you please clarify where I put the edited ini file? I put it under the gPodderPortable folder which also has the gPodderPortable.exe plus the App, Data and Other folders. However, my downloads still went to

C:\Apps\gPodderPortable\Data\config\Downloads

I didn’t change any of the hashed-out text in the ini, I just added DownloadDirFullPath=Z:\Audio\Podcast to a new row at the end.

In order to preserve my history and subscriptions I also copied the following old files from C:\Apps\gPodderPortableOLD\Data\config to the new C:\Apps\gPodderPortable\Data\config folder. Could this have messed with the Downloads pointer?:

Database
Database-journal
gpodder.net
Settings.json

Thank you for your help.

John T. Haller
John T. Haller's picture
Offline
Last seen: 1 hour 38 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
No Longer Supported

It appears that they have dropped support for GPODDER_DOWNLOAD_DIR in the app itself. It is not working in my testing. So the Download directory will be hard coded within the HOME directory, which is set to %PAL:DataDir%\config. You must alter that and move your settings there as well if you'd like to move your downloads. This won't be supported in the portable app and you'll need to manually change it on each release.

Sometimes, the impossible can become possible, if you're awesome!

Badger
Offline
Last seen: 2 years 6 months ago
Joined: 2022-06-13 08:34
Download Directory Resolved

In case anyone else comes across the same issues, I managed to fix it by changing this ini file:

C:\Apps\gPodderPortable\App\AppInfo\Launcher\gPodderPortable.ini

Where C:\Apps is where I told gPodderPortable_3.10.21_Rev_2.paf.exe to place the gPodderPortable folder.

I altered the row

GPODDER_DOWNLOAD_DIR=%PAL:DataDir%\config\Downloads

To:

GPODDER_DOWNLOAD_DIR=Z:\Audio\Podcast

Where Z:\ is the mapped drive on my little back-up server where I keep my music and daily PC Back-ups. Z:\Audio\Podcast is the folder for my downloads from gPodder.

Thanks for your help, John.

JesterZero
Offline
Last seen: 1 year 3 weeks ago
Joined: 2022-09-27 18:57
Download Path Changed in 3.11.0 Release

After I upgraded gPodder 3.11.0, it no longer had any awareness of files previously downloaded onto the local machine. When I investigated, it seems like the default download / storage for podcasts has changed from

*gPodderPortable\Data\config\Downloads*

to

*gPodderPortable\Data\config\Test*

The folder structures, .mp3 files, and folder.jpg files are still there (they were not deleted), but it looks like gPodder has been split in half: everything from 3.10 and before in \Downloads, and everything from 3.11 and after in \Test. I experimented with downloading a new episode, and it definitely stored it in \Test. \Test also has the same folders and album images that \Downloads has, just without the previously downloaded files.

Based on what I saw on this thread, I was able to open up gPodderPortable.ini and confirm that

*GPODDER_DOWNLOAD_DIR=%PAL:DataDir%\config\Downloads*

had been changed to

*GPODDER_DOWNLOAD_DIR=%PAL:DataDir%\config\Test*

Just thought you'd want to know that this occurred, since it doesn't seem like it was intentional? Thanks!

John T. Haller
John T. Haller's picture
Offline
Last seen: 1 hour 38 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Fixed

This has been fixed in 3.11.0 Rev 2. I accidentally left that Test string there from some work I was doing. Apologies for that. I added custom code to move everything to the proper Downloads directory. Thanks for the heads up.

Sometimes, the impossible can become possible, if you're awesome!

Log in or register to post comments