diff options
author | fox <[email protected]> | 2018-08-21 03:47:39 +0000 |
---|---|---|
committer | Gogs <[email protected]> | 2018-08-21 03:47:39 +0000 |
commit | 8ab77d19ef3c84ab6b3a5d6817e4109586310d94 (patch) | |
tree | 59d84db828f331112db0d1dc6dc958f03b9c5515 | |
parent | 02bb26a93ff5b60e7bc3236ef3f62c818d32bd12 (diff) | |
parent | ac8a0e7dc6020bf099488ae04a49681c7fc7d6ef (diff) |
Merge branch 'pullreq-enclosure-content-type' of tkappe/tt-rss into master
-rwxr-xr-x | classes/rssutils.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/rssutils.php b/classes/rssutils.php index 554d89f5a..5a1a9467c 100755 --- a/classes/rssutils.php +++ b/classes/rssutils.php @@ -1060,7 +1060,7 @@ class RSSUtils { } $esth = $pdo->prepare("SELECT id FROM ttrss_enclosures - WHERE content_url = ? AND post_id = ?"); + WHERE content_url = ? AND content_type = ? AND post_id = ?"); $usth = $pdo->prepare("INSERT INTO ttrss_enclosures (content_url, content_type, title, duration, post_id, width, height) VALUES @@ -1074,7 +1074,7 @@ class RSSUtils { $enc_width = intval($enc[4]); $enc_height = intval($enc[5]); - $esth->execute([$enc_url, $entry_ref_id]); + $esth->execute([$enc_url, $enc_type, $entry_ref_id]); if (!$esth->fetch()) { $usth->execute([$enc_url, $enc_type, (string)$enc_title, $enc_dur, $entry_ref_id, $enc_width, $enc_height]); |