mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-22 04:58:01 +01:00
ID detection should work better now
This commit is contained in:
parent
2dd6c663ff
commit
3aacb5f87c
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ class TracksController extends Controller
|
||||||
}
|
}
|
||||||
|
|
||||||
$parsedUrl = parse_url($request->input('url'));
|
$parsedUrl = parse_url($request->input('url'));
|
||||||
$id = preg_match('(\d+)', $parsedUrl['path']);
|
$id = explode('-', explode('/', $parsedUrl['path'])[2])[0];
|
||||||
|
|
||||||
$track = Track
|
$track = Track
|
||||||
::whereId($id)
|
::whereId($id)
|
||||||
|
|
Loading…
Reference in a new issue