Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nonametv
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
XMLTV.se
Open Source
nonametv
Commits
4f44b1aa
Commit
4f44b1aa
authored
Mar 03, 2018
by
Joakim Nylén
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use the global xml parser
parent
cab764ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
Frikanalen.pm
lib/NonameTV/Importer/Frikanalen.pm
+3
-6
No files found.
lib/NonameTV/Importer/Frikanalen.pm
View file @
4f44b1aa
...
...
@@ -14,10 +14,9 @@ Features:
=cut
use
DateTime
;
use
XML::
LibXML
;
use
Encode
qw/encode decode/
;
use
NonameTV
qw/
MyGet norm
AddCountry AddCategory/
;
use
NonameTV
qw/
norm ParseXml
AddCountry AddCategory/
;
use
NonameTV::
Log
qw/progress error w f p/
;
use
NonameTV::DataStore::
Helper
;
...
...
@@ -50,10 +49,8 @@ sub ImportContent
$ds
->
{
SILENCE_END_START_OVERLAP
}
=
1
;
$ds
->
{
SILENCE_DUPLICATE_SKIP
}
=
1
;
my
$xml
=
XML::
LibXML
->
new
;
my
$doc
;
eval
{
$doc
=
$xml
->
parse_string
(
$$cref
);
};
if
(
$@
ne
""
)
my
$doc
=
ParseXml
(
$cref
);
if
(
!
defined
(
$doc
)
)
{
error
(
"$batch_id: Failed to parse $@"
);
return
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment