Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Feeds
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Feeds
Commits
d17b7931
Commit
d17b7931
authored
3 years ago
by
Andrew Dolgov
Browse files
Options
Downloads
Patches
Plain Diff
set missing annotations in af_comics
parent
afdb4b00
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
plugins/af_comics/filter_base.php
+18
-0
18 additions, 0 deletions
plugins/af_comics/filter_base.php
plugins/af_comics/filters/af_comics_tfd.php
+1
-1
1 addition, 1 deletion
plugins/af_comics/filters/af_comics_tfd.php
with
19 additions
and
1 deletion
plugins/af_comics/filter_base.php
+
18
−
0
View file @
d17b7931
<?php
abstract
class
Af_ComicFilter
{
/** @return array<string> */
public
abstract
function
supported
();
/**
* @param array<string,mixed> $article
* @return bool
*/
public
abstract
function
process
(
&
$article
);
public
function
__construct
(
/*PluginHost $host*/
)
{
}
/**
* @param string $url
* @return string|false
*/
public
function
on_subscribe
(
$url
)
{
return
false
;
}
/**
* @param string $url
* @return array{"title": string, "site_url": string}|false
*/
public
function
on_basic_info
(
$url
)
{
return
false
;
}
/**
* @param string $url
* @return string|false
*/
public
function
on_fetch
(
$url
)
{
return
false
;
}
...
...
This diff is collapsed.
Click to expand it.
plugins/af_comics/filters/af_comics_tfd.php
+
1
−
1
View file @
d17b7931
...
...
@@ -12,7 +12,7 @@ class Af_Comics_Tfd extends Af_ComicFilter {
false
,
false
,
0
,
"Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)"
);
if
(
!
$res
)
return
$articl
e
;
if
(
!
$res
)
return
fals
e
;
$doc
=
new
DOMDocument
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment