Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
crawler.vmusicchart.vn
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Phạm Văn Đoan
crawler.vmusicchart.vn
Commits
9a529814
Commit
9a529814
authored
Jun 23, 2020
by
Phạm Văn Đoan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cập nhật ghi log theo ngày và đổi "Đang Cập Nhật" thành "NIA"
parent
a077d701
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
34 deletions
+2
-34
TrackRepository.php
app/Repositories/TrackRepository.php
+1
-33
app.php
config/app.php
+1
-1
No files found.
app/Repositories/TrackRepository.php
View file @
9a529814
...
...
@@ -423,7 +423,7 @@ class TrackRepository extends BaseRepository
}
}
if
(
empty
(
$tracks
[
$track
[
'id'
]]))
{
$tracks
[
$track
[
'id'
]]
=
'
Đang Cập Nhật
'
;
$tracks
[
$track
[
'id'
]]
=
'
NIA
'
;
}
}
...
...
@@ -435,37 +435,5 @@ class TrackRepository extends BaseRepository
return
$tracks
;
}
public
function
getNctTrackListen
(
$inserted
)
{
$tracks
=
[];
//
if
(
count
(
$inserted
)
>
0
)
{
foreach
(
$inserted
as
$key
=>
$track
)
{
$url
=
$track
[
'link_nct'
];
//$dom = new Htmldom($url);
$dom
=
file_get_contents
(
$url
);
//print_r($dom);
//sleep(5);
/* Lấy tên bài hát ------------------------------------------------------------------------------------------ */
/*$element_track_title = 'div.show_listen span';
foreach ($dom->find($element_track_title) as $data) {
$tracks[$track['id']] = str_replace([], [], $data->innertext);
}*/
}
return
$tracks
;
}
else
{
return
null
;
}
}
}
config/app.php
View file @
9a529814
...
...
@@ -120,7 +120,7 @@ return [
|
*/
'log'
=>
env
(
'APP_LOG'
,
'
single
'
),
'log'
=>
env
(
'APP_LOG'
,
'
daily
'
),
'log_level'
=>
env
(
'APP_LOG_LEVEL'
,
'debug'
),
...
...
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