Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nimah79/Subscene-API-PHP
REST API for Subscene subtitle service, written in PHP
https://github.com/nimah79/Subscene-API-PHP
Last synced: about 2 months ago
JSON representation
REST API for Subscene subtitle service, written in PHP
- Host: GitHub
- URL: https://github.com/nimah79/Subscene-API-PHP
- Owner: nimah79
- Created: 2017-03-28T14:21:26.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-01-27T14:19:54.000Z (over 3 years ago)
- Last Synced: 2024-05-29T03:25:55.664Z (4 months ago)
- Language: PHP
- Size: 50.8 KB
- Stars: 22
- Watchers: 4
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Subscene-API-PHP
Unofficial API for Subscene subtitle service, written in PHP
## Usage
Just include `Subscene.php` to your project and use it:
```php
Array
// (
// [title] => Fast Five - How We Roll (Fast Five) [Album- iDon] (2009)
// [url] => https://subscene.com/subtitles/fast-five-how-we-roll-fast-five-album-idon
// )
//
// [1] => Array
// (
// [title] => Fast Five (Fast & Furious 5: The Rio Heist) (2011)
// [url] => https://subscene.com/subtitles/fast-five-fast-and-furious-5-the-rio-heist
// )
//
// [2] => Array
// (
// [title] => How We Roll Fast Five Remix (2011)
// [url] => https://subscene.com/subtitles/how-we-roll-fast-five-remix
// )
//
// [3] => Array
// (
// [title] => Fast Five (Fast & Furious 5: The Rio Heist) (2011)
// [url] => https://subscene.com/subtitles/fast-five-fast-and-furious-5-the-rio-heist
// )
// )$subtitles = Subscene::getSubtitles("https://subscene.com/subtitles/fast-five-fast-and-furious-5-the-rio-heist");
// Array
// (
// [title] => Fast Five (Fast & Furious 5: The Rio Heist)
// [year] => 2011
// [poster] => https://i.jeded.com/i/fast-five-fast-and-furious-5-the-rio-heist.154-8128.jpg
// [imdb] => https://www.imdb.com/title/tt1596343
// [subtitles] => Array
// (
// [0] => Array
// (
// [title] => Fast.Five.2011.EXTENDED.720p.BluRay.DTS.x264-DON
// [language] => Farsi/Persian
// [author] => Array
// (
// [name] => msasanmh
// [url] => https://subscene.com/u/797826
// )
//
// [comment] => برای تمامی نسخههای بلوری و غیر اکستندد ---ترجمه جدید سال 2015
// [url] => https://subscene.com/subtitles/fast-five-fast-and-furious-5-the-rio-heist/farsi_persian/1108695
// )
//
// [1] => Array
// (
// [title] => Fast.Five.2011.BluRay.720p.DTS.x264-CHD
// [language] => Farsi/Persian
// [author] => Array
// (
// [name] => msasanmh
// [url] => https://subscene.com/u/797826
// )
//
// [comment] => برای تمامی نسخههای بلوری و غیر اکستندد ---ترجمه جدید سال 2015
// [url] => https://subscene.com/subtitles/fast-five-fast-and-furious-5-the-rio-heist/farsi_persian/1108695
// )
// )$subtitle_info = Subscene::getSubtitleInfo("https://subscene.com/subtitles/fast-five-fast-and-furious-5-the-rio-heist/farsi_persian/1108695");
// Array
// (
// [title] => Fast Five (Fast & Furious 5: The Rio Heist)
// [poster] => https://i.jeded.com/i/fast-five-fast-and-furious-5-the-rio-heist.154-8128.jpg
// [author] => msasanmh
// [comment] => برای تمامی نسخههای بلوری و غیر اکستندد ---
// ترجمه جدید سال 2015
// [imdb] => https://www.imdb.com/title/tt1596343
// [preview] =>
// 1
00:00:35,702 --> 00:00:38,128
JUDGE: Dominic Toretto.
2
00:00:38,455 --> 00:00:42,499
You are // hereby sentenced
to serve 25 years to life
3
00:00:42,500 --> 00:00:46,295
at the Lompoc Maximum Security
Prison system
4
00:00:46,296 --> 00:00:50,098
<i>without the possibility
of early parole.</i>
5
00:01:35,845 --> 00:01:37,645
(TIRES SQUEALING)
6
//
// [info] => Fast.Five.2011.720p.BluRay.x264.YIFY
// Fast.Five.2011.1080p.BluRay.x264.YIFY
// Fast.Five.2011.720p.BluRay.x264.DTS-WiKi
// Fast.Five.2011.1080p.BluRay.x264.DTS-WiKi
// Fast.Five.2011.BluRay.720p.DTS.x264-CHD
// Fast.Five.2011.BluRay.1080p.DTS.x264-CHD
// Fast.Five.2011.EXTENDED.720p.BluRay.DTS.x264-DON
// Fast.Five.2011.BluRay.1080p.DTS.DUAL.x264
// Fast and Furious 5 Fast Five 2011 BDRip 500MB x264 AAC-DiDee
// Fast Five 2011 720p BDRip XviD AC3-ViSiON
//
// [details] => Online:5/1/2015 9:34 AM
// Hearing Impaired:No
// Foreign parts:Yes
// Framerate:23.976
// Files:2 (72,727bytes)
// Production type:Translated a subtitle
// Release type:Blu-ray
// ---------------------------------------
// Rated:10/10 from15 users
// Voted as Good by:15 users
// Downloads:2,438
//
// [download_url] => https://subscene.com/subtitles/farsi_persian-text/WqoLpe1QAjx6piQHWXmhrAM3cg2siBVAHTCqvpqNOvuT4VkzRdV0daps-FEMwk__g1FFHwEbjQ9G23wsaVEeYnk2VAVS3x2ExEMA-z7JdEGvZHH-sYVYDMyfsiTKaj_50
// )
```