[ComicsKingdomBridge] Grab the last meta og:url content instead of first (#2484)

There are now two og:url values on the page, the first no longer contains the necessary date URL for the bridge to work.  Finding the last og:url on the page restores the bridge to working order.
This commit is contained in:
Jonathan Kay 2022-03-05 13:47:04 -05:00 committed by GitHub
parent ad1ef3425a
commit 9564e9291f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,7 +23,7 @@ class ComicsKingdomBridge extends BridgeAbstract {
$author = $html->find('div.author p', 0);; $author = $html->find('div.author p', 0);;
// Get current date/link // Get current date/link
$link = $html->find('meta[property=og:url]', 0)->content; $link = $html->find('meta[property=og:url]', -1)->content;
for($i = 0; $i < 3; $i++) { for($i = 0; $i < 3; $i++) {
$item = array(); $item = array();