Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HolgerAusB ippen.media-1 adds 50+ new newspaper sites by fingerprint #928

Merged
merged 9 commits into from
Mar 11, 2022
Merged

HolgerAusB ippen.media-1 adds 50+ new newspaper sites by fingerprint #928

merged 9 commits into from
Mar 11, 2022

Conversation

HolgerAusB
Copy link
Collaborator

ATTENTION: this needs a change to the fingerprint-option in config.php or custom_config.php. Please check if this is possible. Lern more inside the file .ippen.media.txt
also see #926

.ippen.media.txt Outdated Show resolved Hide resolved
# a)
# copy this file and name it for your domains e.g.:
# custom/hanauer.de.txt
# custom/ruhr24.de.txt
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like there can be a fingerprints from the html code.

/\<div\s*class=([\'"])id-SiteBEEPWrap([\'"])\>/i

That can be added over here: https://github.com/j0k3r/graby/blob/6ed01641205b7fbdea4ce9ba15a34989af9edc1a/src/Extractor/ContentExtractorConfig.php#L39

What do you think?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will check that tomorrow. Thank you for looking into that

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this one is not working with fulltext-rss. As I wrote in #926 ftr seems to check only the <head> for matches, but your suggestion is within the <body>. And to get sure, I also used a shorter version just for testing:
'id-SiteBEEPWrap' => array('hostname'=>'fingerprint.ippen.media', 'head'=>true),
But still got "No fingerprint matches"

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@HolgerAusB We'll see if it's possible to add this to Full-Text RSS in the config file. It should be possible to use the body and not just the head, if not, we'll fix that in the next version.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the slow response. Haven't forgotten about this, just been very busy. I think we can merge this, as the config changes if/where they're needed have to happen separately anyway. What do you think @j0k3r @HolgerAusB

yes, of course. thank you

Co-authored-by: Jérémy Benoist <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants