RSS-Bridge / rss-bridge

The RSS feed for websites missing it
https://rss-bridge.org/bridge01/
The Unlicense
7.39k stars 1.04k forks source link

CeskaTelevizeBridge - Error 500 #4218

Closed Bugbavka closed 3 months ago

Bugbavka commented 3 months ago

Describe the bug Bridge fails to load any data, throws exception 500 - Could not get date from Česká televize string

To Reproduce Try to load any valid page from Ceska Televize > Error 500 Examples: (Note: these pages might not be available outside Czech republic)

https://www.ceskatelevize.cz/porady/10640154216-most/
https://www.ceskatelevize.cz/porady/1097429889-cerne-ovce/
https://www.ceskatelevize.cz/porady/16169111693-cerna-voda/

Expected behavior Feed will be loaded without any issue

Screenshots Posted as code in Additional context

Desktop:

Smartphone:

Server:

Additional context

Details
Type: Exception
Code: 500
Message: Could not get date from Česká televize string
File: lib/utils.php
Line: 248
Trace
#0 index.php(81): RssBridge->main()
#1 lib/RssBridge.php(96): DisplayAction->__invoke()
#2 actions/DisplayAction.php(65): DisplayAction->createResponse()
#3 actions/DisplayAction.php(113): CeskaTelevizeBridge->collectData()
#4 bridges/CeskaTelevizeBridge.php(72): CeskaTelevizeBridge->getUploadTimeFromString()
#5 bridges/CeskaTelevizeBridge.php(33): returnServerError()
#6 lib/utils.php(248)

Context
Query: action=display&bridge=CeskaTelevizeBridge&url=https://www.ceskatelevize.cz/porady/16169111693-cerna-voda/&_cache_timeout=3600&format=Html
Version: 2024-02-02 (git.master.e9d3a65)
OS: Linux
PHP: 8.2.20 
dvikan commented 3 months ago

@kolarcz

        } elseif (!preg_match('/(\d+).\s(\d+).(\s(\d+))?/', $string, $match)) {
            returnServerError('Could not get date from Česká televize string');
        }
kolarcz commented 3 months ago

@Bugbavka, @dvikan: here is the fix: https://github.com/RSS-Bridge/rss-bridge/pull/4236

Bugbavka commented 3 months ago

4236

Thanks, the bridge is working again with this commit.