mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 05:35:55 +00:00
add support for video[@src] in media cache
it's a valid alternative to a source[@src] child element: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video
This commit is contained in:
@@ -89,7 +89,7 @@ class DiskCache {
|
||||
$xpath = new DOMXPath($doc);
|
||||
$cache = new DiskCache("images");
|
||||
|
||||
$entries = $xpath->query('(//img[@src]|//picture/source[@src]|//video[@poster]|//video/source[@src]|//audio/source[@src])');
|
||||
$entries = $xpath->query('(//img[@src]|//picture/source[@src]|//video[@poster]|//video[@src]|//video/source[@src]|//audio/source[@src])');
|
||||
|
||||
$need_saving = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user