Skip to content

Commit 222d839

Browse files
committed
Merge branch 'bugfix/cache-refresh-broken'
2 parents 88f7073 + 6a6c653 commit 222d839

File tree

4 files changed

+15
-9
lines changed

4 files changed

+15
-9
lines changed

.github/workflows/testing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jobs:
55
strategy:
66
matrix:
77
operating-system: [ubuntu-latest]
8-
php-versions: ['7.3', 7.4', '8.0']
8+
php-versions: ['7.3', '7.4', '8.0']
99
runs-on: ${{ matrix.operating-system }}
1010
steps:
1111
- name: Setup PHP and extensions

CHANGELOG.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
Changelog
22
=========
33

4+
1.30 2021-03-17 * Fix nasty bug when refreshing podcasts due to a newly
5+
uploaded file removing all the links and replacing them
6+
with file paths.
7+
8+
* Compatibility fix with PHP 5.3
9+
410
1.29 2021-03-01 * Proper fix for Last-modified header to use the date within
511
the cached podcast.
612

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[![Testing dir2cast](https://github.com/ben-xo/dir2cast/actions/workflows/testing.yml/badge.svg)](https://github.com/ben-xo/dir2cast/actions/workflows/testing.yml)
22

3-
dir2cast by Ben XO v1.29 (2021-03-01)
3+
dir2cast by Ben XO v1.30 (2021-03-17)
44
================================================================================
55

66
https://github.com/ben-xo/dir2cast/

dir2cast.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
/* DEFAULTS *********************************************/
5757

5858
// error handler needs these, so let's set them now.
59-
define('VERSION', '1.29');
59+
define('VERSION', '1.30');
6060
define('DIR2CAST_HOMEPAGE', 'https://github.com/ben-xo/dir2cast/');
6161
define('GENERATOR', 'dir2cast ' . VERSION . ' by Ben XO (' . DIR2CAST_HOMEPAGE . ')');
6262

@@ -1797,6 +1797,12 @@ public static function defaults()
17971797
Dir_Podcast::$MIN_FILE_AGE = MIN_FILE_AGE;
17981798
Cached_Dir_Podcast::$MIN_CACHE_TIME = MIN_CACHE_TIME;
17991799
getID3_Podcast_Helper::$AUTO_SAVE_COVER_ART = AUTO_SAVE_COVER_ART;
1800+
1801+
// Set up up factory settings for RSS Items
1802+
RSS_File_Item::$FILES_URL = MP3_URL; // TODO: rename this to MEDIA_URL
1803+
RSS_File_Item::$FILES_DIR = MP3_DIR; // TODO: rename this to MEDIA_DIR
1804+
Media_RSS_Item::$LONG_TITLES = LONG_TITLES;
1805+
Media_RSS_Item::$DESCRIPTION_SOURCE = DESCRIPTION_SOURCE;
18001806
}
18011807

18021808
public static function load_from_ini($file)
@@ -1874,12 +1880,6 @@ public function init()
18741880
$atom = $podcast->addHelper(new Atom_Podcast_Helper());
18751881
$itunes = $podcast->addHelper(new iTunes_Podcast_Helper());
18761882

1877-
// Set up up factory settings for RSS Items
1878-
RSS_File_Item::$FILES_URL = MP3_URL; // TODO: rename this to MEDIA_URL
1879-
RSS_File_Item::$FILES_DIR = MP3_DIR; // TODO: rename this to MEDIA_DIR
1880-
Media_RSS_Item::$LONG_TITLES = LONG_TITLES;
1881-
Media_RSS_Item::$DESCRIPTION_SOURCE = DESCRIPTION_SOURCE;
1882-
18831883
$podcast->setTitle(TITLE);
18841884
$podcast->setLink(LINK);
18851885
$podcast->setDescription(DESCRIPTION);

0 commit comments

Comments
 (0)