├── app ├── .gitignore ├── src │ ├── main │ │ ├── ic_launcher-web.png │ │ ├── res │ │ │ ├── values-xlarge │ │ │ │ └── dimens.xml │ │ │ ├── drawable-hdpi │ │ │ │ ├── lang_ar.png │ │ │ │ ├── lang_bs.png │ │ │ │ ├── lang_de.png │ │ │ │ ├── lang_el.png │ │ │ │ ├── lang_en.png │ │ │ │ ├── lang_es.png │ │ │ │ ├── lang_fr.png │ │ │ │ ├── lang_hi.png │ │ │ │ ├── lang_hr.png │ │ │ │ ├── lang_it.png │ │ │ │ ├── lang_jp.png │ │ │ │ ├── lang_ko.png │ │ │ │ ├── lang_nl.png │ │ │ │ ├── lang_ru.png │ │ │ │ ├── lang_sr.png │ │ │ │ ├── lang_tr.png │ │ │ │ ├── lang_zh.png │ │ │ │ ├── ic_drawer.png │ │ │ │ ├── ic_player.png │ │ │ │ ├── lang_de_en.png │ │ │ │ ├── ic_launcher.png │ │ │ │ ├── drawer_shadow.9.png │ │ │ │ ├── ic_action_imdb.png │ │ │ │ ├── ic_action_play.png │ │ │ │ ├── ic_action_browser.png │ │ │ │ ├── ic_action_search.png │ │ │ │ ├── ic_player_chromecast.png │ │ │ │ ├── ic_action_bookmark_off.png │ │ │ │ ├── ic_action_bookmark_on.png │ │ │ │ ├── ic_loading_placeholder.png │ │ │ │ └── ic_drag_handle_black_48dp.png │ │ │ ├── drawable-mdpi │ │ │ │ ├── ic_drawer.png │ │ │ │ ├── ic_player.png │ │ │ │ ├── ic_launcher.png │ │ │ │ ├── drawer_shadow.9.png │ │ │ │ ├── ic_action_imdb.png │ │ │ │ ├── ic_action_play.png │ │ │ │ ├── ic_action_browser.png │ │ │ │ ├── ic_action_search.png │ │ │ │ ├── ic_player_chromecast.png │ │ │ │ ├── ic_action_bookmark_off.png │ │ │ │ ├── ic_action_bookmark_on.png │ │ │ │ ├── ic_loading_placeholder.png │ │ │ │ └── ic_drag_handle_black_48dp.png │ │ │ ├── drawable-xhdpi │ │ │ │ ├── ic_drawer.png │ │ │ │ ├── ic_player.png │ │ │ │ ├── ic_launcher.png │ │ │ │ ├── ic_action_imdb.png │ │ │ │ ├── ic_action_play.png │ │ │ │ ├── drawer_shadow.9.png │ │ │ │ ├── ic_action_search.png │ │ │ │ ├── ic_action_browser.png │ │ │ │ ├── ic_action_bookmark_on.png │ │ │ │ ├── ic_player_chromecast.png │ │ │ │ ├── ic_action_bookmark_off.png │ │ │ │ ├── ic_loading_placeholder.png │ │ │ │ └── ic_drag_handle_black_48dp.png │ │ │ ├── drawable-xxhdpi │ │ │ │ ├── ic_drawer.png │ │ │ │ ├── ic_player.png │ │ │ │ ├── ic_launcher.png │ │ │ │ ├── drawer_shadow.9.png │ │ │ │ ├── ic_action_imdb.png │ │ │ │ ├── ic_action_play.png │ │ │ │ ├── ic_action_browser.png │ │ │ │ ├── ic_action_search.png │ │ │ │ ├── ic_player_chromecast.png │ │ │ │ ├── ic_action_bookmark_off.png │ │ │ │ ├── ic_action_bookmark_on.png │ │ │ │ ├── ic_loading_placeholder.png │ │ │ │ └── ic_drag_handle_black_48dp.png │ │ │ ├── drawable-xxxhdpi │ │ │ │ ├── ic_launcher.png │ │ │ │ └── ic_drag_handle_black_48dp.png │ │ │ ├── xml │ │ │ │ ├── provider_paths.xml │ │ │ │ ├── searchable.xml │ │ │ │ └── pref_general.xml │ │ │ ├── values │ │ │ │ ├── defaul_settings.xml │ │ │ │ ├── attrs.xml │ │ │ │ ├── colors.xml │ │ │ │ ├── dimens.xml │ │ │ │ ├── styles.xml │ │ │ │ └── strings.xml │ │ │ ├── drawable │ │ │ │ ├── fragment_list_item_focus.xml │ │ │ │ ├── gradient.xml │ │ │ │ ├── selector_medium_high.xml │ │ │ │ └── list_item_selector.xml │ │ │ ├── values-w820dp │ │ │ │ └── dimens.xml │ │ │ ├── layout │ │ │ │ ├── toolbar_default.xml │ │ │ │ ├── drawer_header.xml │ │ │ │ ├── activity_order_hostlist.xml │ │ │ │ ├── video_loading_progress.xml │ │ │ │ ├── activity_player.xml │ │ │ │ ├── order_hostlist_item.xml │ │ │ │ ├── player_list_item.xml │ │ │ │ ├── fragment_list.xml │ │ │ │ ├── fragment_navigation_drawer.xml │ │ │ │ ├── activity_main.xml │ │ │ │ └── frament_list_item.xml │ │ │ ├── values-v21 │ │ │ │ └── styles.xml │ │ │ └── menu │ │ │ │ ├── main.xml │ │ │ │ ├── drawer.xml │ │ │ │ └── detail.xml │ │ ├── java │ │ │ └── com │ │ │ │ ├── ov3rk1ll │ │ │ │ └── kinocast │ │ │ │ │ ├── data │ │ │ │ │ ├── Season.java │ │ │ │ │ └── ViewModel.java │ │ │ │ │ ├── ui │ │ │ │ │ ├── util │ │ │ │ │ │ ├── CustomMediaController.java │ │ │ │ │ │ ├── glide │ │ │ │ │ │ │ ├── ViewModelGlideRequest.java │ │ │ │ │ │ │ ├── OkHttpViewModelUrlLoader.java │ │ │ │ │ │ │ └── OkHttpViewModelStreamFetcher.java │ │ │ │ │ │ ├── SystemUiHiderBase.java │ │ │ │ │ │ ├── SystemUiHiderHoneycomb.java │ │ │ │ │ │ └── SystemUiHider.java │ │ │ │ │ ├── helper │ │ │ │ │ │ ├── PaletteManager.java │ │ │ │ │ │ └── layout │ │ │ │ │ │ │ ├── SearchSuggestionAdapter.java │ │ │ │ │ │ │ ├── GridLayoutManager.java │ │ │ │ │ │ │ └── ResultRecyclerAdapter.java │ │ │ │ │ ├── PlayerActivity.java │ │ │ │ │ ├── OrderHostlistActivity.java │ │ │ │ │ └── SettingsActivity.java │ │ │ │ │ ├── BackupAgent.java │ │ │ │ │ ├── utils │ │ │ │ │ ├── UserAgentInterceptor.java │ │ │ │ │ ├── WeightedHostComparator.java │ │ │ │ │ ├── InjectedCookieJar.java │ │ │ │ │ ├── CustomDns.java │ │ │ │ │ ├── Utils.java │ │ │ │ │ ├── BookmarkManager.java │ │ │ │ │ ├── CloudflareDdosInterceptor.java │ │ │ │ │ └── TheMovieDb.java │ │ │ │ │ ├── api │ │ │ │ │ ├── mirror │ │ │ │ │ │ ├── Sockshare.java │ │ │ │ │ │ ├── NowVideo.java │ │ │ │ │ │ ├── DivxStage.java │ │ │ │ │ │ ├── Host.java │ │ │ │ │ │ ├── SharedSx.java │ │ │ │ │ │ ├── Vodlocker.java │ │ │ │ │ │ └── StreamCloud.java │ │ │ │ │ ├── Movie4kParser.java │ │ │ │ │ └── Parser.java │ │ │ │ │ └── TrackingApplication.java │ │ │ │ └── winsontan520 │ │ │ │ └── wversionmanager │ │ │ │ └── library │ │ │ │ └── CustomTagHandler.java │ │ └── AndroidManifest.xml │ └── androidTest │ │ └── java │ │ └── com │ │ └── ov3rk1ll │ │ └── kinocast │ │ └── ApplicationTest.java ├── build.gradle └── proguard-rules.pro ├── settings.gradle ├── art ├── promo.fw.png ├── kinocast_icon_base.eps ├── kinocast_icon_nobg.png ├── kinocast_icon_512.fw.png └── kinocast_player_512.fw.png ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── .gitignore ├── README.md ├── .gitattributes ├── local.properties.example ├── CHANGELOG.md ├── gradle.properties ├── LICENSE ├── gradlew.bat └── gradlew /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' -------------------------------------------------------------------------------- /art/promo.fw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/art/promo.fw.png -------------------------------------------------------------------------------- /art/kinocast_icon_base.eps: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/art/kinocast_icon_base.eps -------------------------------------------------------------------------------- /art/kinocast_icon_nobg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/art/kinocast_icon_nobg.png -------------------------------------------------------------------------------- /art/kinocast_icon_512.fw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/art/kinocast_icon_512.fw.png -------------------------------------------------------------------------------- /art/kinocast_player_512.fw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/art/kinocast_player_512.fw.png -------------------------------------------------------------------------------- /app/src/main/ic_launcher-web.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/ic_launcher-web.png -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /app/src/main/res/values-xlarge/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 400dp 3 | 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .gradle 2 | /local.properties 3 | /.idea 4 | .DS_Store 5 | /build 6 | app/fabric.properties 7 | app/flurry.config 8 | *.iml 9 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/lang_ar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-hdpi/lang_ar.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/lang_bs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-hdpi/lang_bs.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/lang_de.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-hdpi/lang_de.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/lang_el.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-hdpi/lang_el.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/lang_en.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-hdpi/lang_en.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/lang_es.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-hdpi/lang_es.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/lang_fr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-hdpi/lang_fr.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/lang_hi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-hdpi/lang_hi.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/lang_hr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-hdpi/lang_hr.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/lang_it.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-hdpi/lang_it.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/lang_jp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-hdpi/lang_jp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/lang_ko.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-hdpi/lang_ko.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/lang_nl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-hdpi/lang_nl.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/lang_ru.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-hdpi/lang_ru.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/lang_sr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-hdpi/lang_sr.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/lang_tr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-hdpi/lang_tr.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/lang_zh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-hdpi/lang_zh.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_drawer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-hdpi/ic_drawer.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_player.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-hdpi/ic_player.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/lang_de_en.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-hdpi/lang_de_en.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_drawer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-mdpi/ic_drawer.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_player.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-mdpi/ic_player.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_drawer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-xhdpi/ic_drawer.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_player.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-xhdpi/ic_player.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_drawer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-xxhdpi/ic_drawer.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_player.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-xxhdpi/ic_player.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/drawer_shadow.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-hdpi/drawer_shadow.9.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_imdb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-hdpi/ic_action_imdb.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_play.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-hdpi/ic_action_play.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/drawer_shadow.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-mdpi/drawer_shadow.9.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_action_imdb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-mdpi/ic_action_imdb.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_action_play.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-mdpi/ic_action_play.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_imdb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-xhdpi/ic_action_imdb.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_play.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-xhdpi/ic_action_play.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_browser.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-hdpi/ic_action_browser.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-hdpi/ic_action_search.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_action_browser.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-mdpi/ic_action_browser.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_action_search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-mdpi/ic_action_search.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/drawer_shadow.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-xhdpi/drawer_shadow.9.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-xhdpi/ic_action_search.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/drawer_shadow.9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-xxhdpi/drawer_shadow.9.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_imdb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-xxhdpi/ic_action_imdb.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_play.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-xxhdpi/ic_action_play.png -------------------------------------------------------------------------------- /app/src/main/res/xml/provider_paths.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_player_chromecast.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-hdpi/ic_player_chromecast.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_player_chromecast.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-mdpi/ic_player_chromecast.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_browser.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-xhdpi/ic_action_browser.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_browser.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-xxhdpi/ic_action_browser.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-xxhdpi/ic_action_search.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_bookmark_off.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-hdpi/ic_action_bookmark_off.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_action_bookmark_on.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-hdpi/ic_action_bookmark_on.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_loading_placeholder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-hdpi/ic_loading_placeholder.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_action_bookmark_off.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-mdpi/ic_action_bookmark_off.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_action_bookmark_on.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-mdpi/ic_action_bookmark_on.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_loading_placeholder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-mdpi/ic_loading_placeholder.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_bookmark_on.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-xhdpi/ic_action_bookmark_on.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_player_chromecast.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-xhdpi/ic_player_chromecast.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_player_chromecast.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-xxhdpi/ic_player_chromecast.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-hdpi/ic_drag_handle_black_48dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-hdpi/ic_drag_handle_black_48dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-mdpi/ic_drag_handle_black_48dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-mdpi/ic_drag_handle_black_48dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_action_bookmark_off.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-xhdpi/ic_action_bookmark_off.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_loading_placeholder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-xhdpi/ic_loading_placeholder.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_bookmark_off.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-xxhdpi/ic_action_bookmark_off.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_action_bookmark_on.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-xxhdpi/ic_action_bookmark_on.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_loading_placeholder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-xxhdpi/ic_loading_placeholder.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xhdpi/ic_drag_handle_black_48dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-xhdpi/ic_drag_handle_black_48dp.png -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxhdpi/ic_drag_handle_black_48dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-xxhdpi/ic_drag_handle_black_48dp.png -------------------------------------------------------------------------------- /app/src/main/res/values/defaul_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | http://www.kinox.to 4 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-xxxhdpi/ic_drag_handle_black_48dp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ov3rk1ll/KinoCast/HEAD/app/src/main/res/drawable-xxxhdpi/ic_drag_handle_black_48dp.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # KinoCast 2 | 3 | Dieses Repository wird nicht mehr betreiben. Unter https://github.com/QDaniel/KinoCast findest du neue Versionen. 4 | 5 | This repository is no longer actively maintained. Visit https://github.com/QDaniel/KinoCast for new updates. 6 | -------------------------------------------------------------------------------- /app/src/main/res/xml/searchable.xml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/fragment_list_item_focus.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Mon Feb 06 15:48:30 CET 2017 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip 7 | -------------------------------------------------------------------------------- /app/src/main/java/com/ov3rk1ll/kinocast/data/Season.java: -------------------------------------------------------------------------------- 1 | package com.ov3rk1ll.kinocast.data; 2 | 3 | public class Season { 4 | public int id; 5 | public String name; 6 | public String[] episodes; 7 | 8 | public Season() { } 9 | 10 | @Override 11 | public String toString() { 12 | return this.name; 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/gradient.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 11 | 12 | -------------------------------------------------------------------------------- /app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /app/src/androidTest/java/com/ov3rk1ll/kinocast/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.ov3rk1ll.kinocast; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /app/src/main/res/values/attrs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | *.sln merge=union 7 | *.csproj merge=union 8 | *.vbproj merge=union 9 | *.fsproj merge=union 10 | *.dbproj merge=union 11 | 12 | # Standard to msysgit 13 | *.doc diff=astextplain 14 | *.DOC diff=astextplain 15 | *.docx diff=astextplain 16 | *.DOCX diff=astextplain 17 | *.dot diff=astextplain 18 | *.DOT diff=astextplain 19 | *.pdf diff=astextplain 20 | *.PDF diff=astextplain 21 | *.rtf diff=astextplain 22 | *.RTF diff=astextplain 23 | -------------------------------------------------------------------------------- /app/src/main/res/layout/toolbar_default.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/selector_medium_high.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /app/src/main/res/values-v21/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 10 | -------------------------------------------------------------------------------- /local.properties.example: -------------------------------------------------------------------------------- 1 | ## This file is automatically generated by Android Studio. 2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED! 3 | # 4 | # This file must *NOT* be checked into Version Control Systems, 5 | # as it contains information specific to your local configuration. 6 | # 7 | # Location of the SDK. This is only used by Gradle. 8 | # For customization when using a Version Control System, please read the 9 | # header note. 10 | #Wed Feb 08 18:29:08 CET 2017 11 | FLURRY_API_KEY=null 12 | MOBFOX_HASH=null 13 | sdk.dir=C\:\\android-sdk 14 | FABRIC_API_KEY=null 15 | PAYPAL_DONATE=null 16 | -------------------------------------------------------------------------------- /app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #66000000 4 | 5 | #03A9F4 6 | #0288D1 7 | #B3E5FC 8 | #FFEB3B 9 | #212121 10 | #727272 11 | #FFFFFF 12 | #B6B6B6 13 | 14 | #AACCCCCC 15 | #46ffeb3b 16 | 17 | -------------------------------------------------------------------------------- /app/src/main/java/com/ov3rk1ll/kinocast/ui/util/CustomMediaController.java: -------------------------------------------------------------------------------- 1 | package com.ov3rk1ll.kinocast.ui.util; 2 | 3 | import android.app.Activity; 4 | import android.content.Context; 5 | import android.view.KeyEvent; 6 | import android.widget.MediaController; 7 | 8 | public class CustomMediaController extends MediaController { 9 | 10 | public CustomMediaController(Context context) { 11 | super(context); 12 | } 13 | 14 | @Override 15 | public boolean dispatchKeyEvent(KeyEvent event) { 16 | if (event.getKeyCode() == KeyEvent.KEYCODE_BACK){ 17 | ((Activity) getContext()).onBackPressed(); 18 | return true; 19 | } 20 | return super.dispatchKeyEvent(event); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /app/src/main/java/com/ov3rk1ll/kinocast/BackupAgent.java: -------------------------------------------------------------------------------- 1 | package com.ov3rk1ll.kinocast; 2 | 3 | import android.app.backup.BackupAgentHelper; 4 | import android.app.backup.FileBackupHelper; 5 | 6 | public class BackupAgent extends BackupAgentHelper { 7 | // The name of the SharedPreferences file 8 | static final String BOOKMARKS_FILENAME = "bookmarks.dat"; 9 | 10 | // A key to uniquely identify the set of backup data 11 | static final String FILES_BACKUP_KEY = "myfiles"; 12 | 13 | // Allocate a helper and add it to the backup agent 14 | @Override 15 | public void onCreate() { 16 | FileBackupHelper helper = new FileBackupHelper(this, BOOKMARKS_FILENAME); 17 | addHelper(FILES_BACKUP_KEY, helper); 18 | } 19 | 20 | } -------------------------------------------------------------------------------- /app/src/main/java/com/winsontan520/wversionmanager/library/CustomTagHandler.java: -------------------------------------------------------------------------------- 1 | package com.winsontan520.wversionmanager.library; 2 | 3 | import android.text.Editable; 4 | import android.text.Html.TagHandler; 5 | 6 | import org.xml.sax.XMLReader; 7 | 8 | public class CustomTagHandler implements TagHandler{ 9 | 10 | @Override 11 | public void handleTag(boolean opening, String tag, Editable output, 12 | XMLReader xmlReader) { 13 | // you may add more tag handler which are not supported by android here 14 | if("li".equals(tag)){ 15 | if(opening){ 16 | output.append(" \u2022 "); 17 | }else{ 18 | output.append("\n"); 19 | } 20 | } 21 | } 22 | } -------------------------------------------------------------------------------- /app/src/main/res/menu/main.xml: -------------------------------------------------------------------------------- 1 | 5 | 10 | 15 | 16 | -------------------------------------------------------------------------------- /app/src/main/java/com/ov3rk1ll/kinocast/ui/util/glide/ViewModelGlideRequest.java: -------------------------------------------------------------------------------- 1 | package com.ov3rk1ll.kinocast.ui.util.glide; 2 | 3 | import com.ov3rk1ll.kinocast.data.ViewModel; 4 | 5 | 6 | public class ViewModelGlideRequest { 7 | private ViewModel viewModel; 8 | private int screenWidthPx; 9 | private String type; 10 | 11 | public ViewModelGlideRequest(ViewModel viewModel, int screenWidthPx, String type) { 12 | this.viewModel = viewModel; 13 | this.screenWidthPx = screenWidthPx; 14 | this.type = type; 15 | } 16 | 17 | ViewModel getViewModel() { 18 | return viewModel; 19 | } 20 | 21 | int getScreenWidthPx() { 22 | return screenWidthPx; 23 | } 24 | 25 | public String getType() { 26 | return type; 27 | } 28 | } -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## Änderungen 2 | ### Version 1.3.2 3 | - [Neu] Update Funktion 4 | 5 | ### Version 1.3.1 6 | - [Fix] Titel und Menu Position 7 | 8 | ### Version 1.3.0 9 | - [Neu] Design changes (with some Material design) 10 | - [Fix] Chrash wenn Details geöffnet wurden bevor das Cover geladen war 11 | - [Fix] Chromecast Update für Lollipop 12 | 13 | ### Version 1.2.0 14 | - [Neu] Favoriten/Bookmarks 15 | - [Neu] Unterstützung für nowvideo.sx 16 | - [Neu] Cover-Art in besserer Auflösung 17 | - [Neu] Warnung beim Streaming über Mobilnetz anzeigen 18 | 19 | ### Version 1.1.1 20 | - [Fix] Bilder direkt von kinox laden (niedrige Auflösung) bis eine bessere Alternative gefunden wurde 21 | 22 | ### Version 1.1.0 23 | - [Neu] Player zum abspielen von Streams 24 | - [Fix] Fehler bei Android 2.3 Geräten behoben 25 | 26 | ### Version 1.0.5 27 | - Public Release 28 | -------------------------------------------------------------------------------- /app/src/main/java/com/ov3rk1ll/kinocast/utils/UserAgentInterceptor.java: -------------------------------------------------------------------------------- 1 | package com.ov3rk1ll.kinocast.utils; 2 | 3 | import java.io.IOException; 4 | 5 | import okhttp3.Interceptor; 6 | import okhttp3.Request; 7 | import okhttp3.Response; 8 | 9 | public class UserAgentInterceptor implements Interceptor { 10 | 11 | private final String userAgent; 12 | 13 | public UserAgentInterceptor(String userAgent) { 14 | this.userAgent = userAgent; 15 | } 16 | 17 | @Override 18 | public Response intercept(Chain chain) throws IOException { 19 | Request originalRequest = chain.request(); 20 | Request requestWithUserAgent = originalRequest.newBuilder() 21 | .removeHeader("User-Agent") 22 | .addHeader("User-Agent", userAgent) 23 | .build(); 24 | return chain.proceed(requestWithUserAgent); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /app/src/main/java/com/ov3rk1ll/kinocast/api/mirror/Sockshare.java: -------------------------------------------------------------------------------- 1 | package com.ov3rk1ll.kinocast.api.mirror; 2 | 3 | import android.text.TextUtils; 4 | 5 | import com.ov3rk1ll.kinocast.ui.DetailActivity; 6 | 7 | public class Sockshare extends Host { 8 | private static final String TAG = Sockshare.class.getSimpleName(); 9 | public static final int HOST_ID = 5; 10 | 11 | 12 | @Override 13 | public int getId() { 14 | return HOST_ID; 15 | } 16 | 17 | @Override 18 | public String getName() { 19 | return "Sockshare"; 20 | } 21 | 22 | @Override 23 | public boolean isEnabled() { 24 | return false; 25 | } 26 | 27 | @Override 28 | public String getVideoPath(DetailActivity.QueryPlayTask queryTask) { 29 | if(TextUtils.isEmpty(url)) return null; 30 | //TODO implement Sockshare 31 | return null; 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /gradle.properties: -------------------------------------------------------------------------------- 1 | # Project-wide Gradle settings. 2 | 3 | # IDE (e.g. Android Studio) users: 4 | # Settings specified in this file will override any Gradle settings 5 | # configured through the IDE. 6 | 7 | # For more details on how to configure your build environment visit 8 | # http://www.gradle.org/docs/current/userguide/build_environment.html 9 | 10 | # Specifies the JVM arguments used for the daemon process. 11 | # The setting is particularly useful for tweaking memory settings. 12 | # Default value: -Xmx10248m -XX:MaxPermSize=256m 13 | # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 14 | 15 | # When configured, Gradle will run in incubating parallel mode. 16 | # This option should only be used with decoupled projects. More details, visit 17 | # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects 18 | # org.gradle.parallel=true 19 | -------------------------------------------------------------------------------- /app/src/main/res/layout/drawer_header.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 15 | 16 | 22 | -------------------------------------------------------------------------------- /app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 8dp 4 | 8dp 5 | 6 | 8 | 240dp 9 | 10 | 16dp 11 | 2dp 12 | 13 | 140dp 14 | 200dp 15 | 16 | 306dp 17 | 18 | 256dp 19 | 192dp 20 | 64dp 21 | 22 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/list_item_selector.xml: -------------------------------------------------------------------------------- 1 | 2 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /app/src/main/java/com/ov3rk1ll/kinocast/utils/WeightedHostComparator.java: -------------------------------------------------------------------------------- 1 | package com.ov3rk1ll.kinocast.utils; 2 | 3 | import android.util.SparseIntArray; 4 | 5 | import com.ov3rk1ll.kinocast.api.mirror.Host; 6 | 7 | import java.util.Comparator; 8 | 9 | 10 | public class WeightedHostComparator implements Comparator { 11 | private SparseIntArray weightedList; 12 | 13 | public WeightedHostComparator(SparseIntArray weightedList){ 14 | this.weightedList = weightedList; 15 | } 16 | 17 | @Override 18 | public int compare(Host o1, Host o2) { 19 | if(weightedList == null) return compate(o1.getMirror(), o2.getMirror()); 20 | int w1 = weightedList.get(o1.getId(), o1.getId()); 21 | int w2 = weightedList.get(o2.getId(), o2.getId()); 22 | if(w1 == w2){ // Same host, sort by mirror 23 | compate(o1.getMirror(), o2.getMirror()); 24 | } 25 | return compate(w1, w2); 26 | } 27 | 28 | private int compate(int x, int y){ 29 | return (x < y) ? -1 : ((x == y) ? 0 : 1); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 ov3rk1ll 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /app/src/main/res/menu/drawer.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 8 | 11 | 14 | 17 | 20 | 23 | 26 | 27 | -------------------------------------------------------------------------------- /app/src/main/java/com/ov3rk1ll/kinocast/utils/InjectedCookieJar.java: -------------------------------------------------------------------------------- 1 | package com.ov3rk1ll.kinocast.utils; 2 | 3 | import java.util.ArrayList; 4 | import java.util.Arrays; 5 | import java.util.List; 6 | 7 | import okhttp3.Cookie; 8 | import okhttp3.CookieJar; 9 | import okhttp3.HttpUrl; 10 | 11 | public class InjectedCookieJar implements CookieJar { 12 | private final List cookieStore = new ArrayList<>(); 13 | 14 | @Override 15 | public String toString() { 16 | return Arrays.toString(cookieStore.toArray()); 17 | } 18 | 19 | public void addCookie(Cookie cookie){ 20 | // Check if we have that cookie so we can overwrite it 21 | for(int i = 0; i < cookieStore.size(); i++){ 22 | if(cookieStore.get(i).name().equals(cookie.name())){ 23 | cookieStore.remove(i); 24 | break; 25 | } 26 | } 27 | cookieStore.add(cookie); 28 | } 29 | 30 | @Override 31 | public void saveFromResponse(HttpUrl url, List cookies) { 32 | cookieStore.addAll(cookies); 33 | } 34 | 35 | @Override 36 | public List loadForRequest(HttpUrl url) { 37 | return cookieStore; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /app/src/main/java/com/ov3rk1ll/kinocast/TrackingApplication.java: -------------------------------------------------------------------------------- 1 | package com.ov3rk1ll.kinocast; 2 | 3 | import android.app.Application; 4 | import android.content.SharedPreferences; 5 | import android.preference.PreferenceManager; 6 | import android.util.Log; 7 | 8 | import com.crashlytics.android.Crashlytics; 9 | import com.flurry.android.FlurryAgent; 10 | import com.ov3rk1ll.kinocast.api.KinoxParser; 11 | import com.ov3rk1ll.kinocast.api.Parser; 12 | 13 | import io.fabric.sdk.android.Fabric; 14 | 15 | 16 | public class TrackingApplication extends Application { 17 | 18 | @Override 19 | public void onCreate() { 20 | //TODO Select Parser depending on settings 21 | SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(getApplicationContext()); 22 | Parser.selectParser(this, preferences.getInt("parser", KinoxParser.PARSER_ID)); 23 | Log.i("selectParser", "ID is " + Parser.getInstance().getParserId()); 24 | 25 | new FlurryAgent.Builder() 26 | .withLogEnabled(true) 27 | .build(this, getString(R.string.FLURRY_API_KEY)); 28 | 29 | Fabric.with(this, new Crashlytics()); 30 | 31 | super.onCreate(); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /app/src/main/java/com/ov3rk1ll/kinocast/ui/helper/PaletteManager.java: -------------------------------------------------------------------------------- 1 | package com.ov3rk1ll.kinocast.ui.helper; 2 | 3 | import android.graphics.Bitmap; 4 | import android.support.v4.util.LruCache; 5 | import android.support.v7.graphics.Palette; 6 | 7 | public class PaletteManager { 8 | private LruCache cache = new LruCache<>(100); 9 | private static PaletteManager instance; 10 | 11 | public static PaletteManager getInstance(){ 12 | if(instance == null) instance = new PaletteManager(); 13 | return instance; 14 | } 15 | 16 | public interface Callback { 17 | void onPaletteReady(Palette palette); 18 | } 19 | 20 | public void getPalette(final String key, Bitmap bitmap, final Callback callback) { 21 | Palette palette = cache.get(key); 22 | if (palette != null) 23 | callback.onPaletteReady(palette); 24 | else 25 | if(bitmap == null){ 26 | callback.onPaletteReady(null); 27 | } else { 28 | Palette.from(bitmap).generate(new Palette.PaletteAsyncListener() { 29 | public void onGenerated(Palette p) { 30 | cache.put(key, p); 31 | callback.onPaletteReady(p); 32 | } 33 | }); 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_order_hostlist.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 8 | 16 | 17 | 21 | 25 | 26 | 27 | 28 | 33 | -------------------------------------------------------------------------------- /app/src/main/res/layout/video_loading_progress.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 15 | 16 | 22 | 23 | 31 | -------------------------------------------------------------------------------- /app/src/main/res/menu/detail.xml: -------------------------------------------------------------------------------- 1 | 5 | 10 | 16 | 22 | 27 | 32 | 33 | -------------------------------------------------------------------------------- /app/src/main/res/layout/activity_player.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 11 | 16 | 17 | 19 | 22 | 23 | 29 | 30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /app/src/main/res/layout/order_hostlist_item.xml: -------------------------------------------------------------------------------- 1 | 2 | 13 | 21 | 22 | 28 | 29 | 33 | 34 | -------------------------------------------------------------------------------- /app/src/main/java/com/ov3rk1ll/kinocast/ui/helper/layout/SearchSuggestionAdapter.java: -------------------------------------------------------------------------------- 1 | package com.ov3rk1ll.kinocast.ui.helper.layout; 2 | 3 | 4 | import android.content.Context; 5 | import android.database.Cursor; 6 | import android.database.MatrixCursor; 7 | import android.support.v4.widget.SimpleCursorAdapter; 8 | import android.text.TextUtils; 9 | import android.widget.FilterQueryProvider; 10 | 11 | import com.ov3rk1ll.kinocast.api.Parser; 12 | 13 | public class SearchSuggestionAdapter extends SimpleCursorAdapter { 14 | 15 | public SearchSuggestionAdapter(Context context, int layout, Cursor c, String[] from, int[] to, int flags) { 16 | super(context, layout, c, from, to, flags); 17 | 18 | setFilterQueryProvider(new FilterQueryProvider() { 19 | public Cursor runQuery(CharSequence constraint) { 20 | MatrixCursor matrixCursor = new MatrixCursor(new String[] { "_id", "item" }); 21 | 22 | if(constraint == null) return matrixCursor; 23 | String query = constraint.toString(); 24 | if(TextUtils.isEmpty(query)) return matrixCursor; 25 | String suggestions[] = Parser.getInstance().getSearchSuggestions(query); 26 | if(suggestions == null) return matrixCursor; 27 | 28 | for (int i = 0; i < suggestions.length; i++) { 29 | matrixCursor.addRow(new Object[]{(i + 1), suggestions[i]}); 30 | } 31 | 32 | return matrixCursor; 33 | } 34 | }); 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /app/src/main/java/com/ov3rk1ll/kinocast/api/mirror/NowVideo.java: -------------------------------------------------------------------------------- 1 | package com.ov3rk1ll.kinocast.api.mirror; 2 | 3 | import android.text.TextUtils; 4 | 5 | import com.ov3rk1ll.kinocast.R; 6 | import com.ov3rk1ll.kinocast.ui.DetailActivity; 7 | import com.ov3rk1ll.kinocast.utils.Utils; 8 | 9 | import org.jsoup.Jsoup; 10 | import org.jsoup.nodes.Document; 11 | 12 | public class NowVideo extends Host { 13 | private static final String TAG = NowVideo.class.getSimpleName(); 14 | public static final int HOST_ID = 40; 15 | 16 | @Override 17 | public int getId() { 18 | return HOST_ID; 19 | } 20 | 21 | @Override 22 | public String getName() { 23 | return "NowVideo"; 24 | } 25 | 26 | @Override 27 | public boolean isEnabled() { 28 | return true; 29 | } 30 | 31 | @Override 32 | public String getVideoPath(DetailActivity.QueryPlayTask queryTask) { 33 | if(TextUtils.isEmpty(url)) return null; 34 | try { 35 | String id = url.substring(url.lastIndexOf("/") + 1); 36 | queryTask.updateProgress(queryTask.getContext().getString(R.string.host_progress_getvideoforid, id)); 37 | Document doc = Jsoup.connect("http://www.nowvideo.sx/mobile/video.php?id=" + id) 38 | .userAgent(Utils.USER_AGENT) 39 | .timeout(3000) 40 | .get(); 41 | 42 | return doc.select("source[type=video/mp4]").attr("src"); 43 | } catch (Exception e) { 44 | e.printStackTrace(); 45 | } 46 | return null; 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /app/src/main/res/layout/player_list_item.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | 18 | 19 | 25 | 26 | 27 | 39 | -------------------------------------------------------------------------------- /app/src/main/java/com/ov3rk1ll/kinocast/api/mirror/DivxStage.java: -------------------------------------------------------------------------------- 1 | package com.ov3rk1ll.kinocast.api.mirror; 2 | 3 | import android.text.TextUtils; 4 | import android.util.Log; 5 | 6 | import com.ov3rk1ll.kinocast.R; 7 | import com.ov3rk1ll.kinocast.ui.DetailActivity; 8 | import com.ov3rk1ll.kinocast.utils.Utils; 9 | 10 | import org.json.JSONException; 11 | import org.json.JSONObject; 12 | 13 | public class DivxStage extends Host { 14 | private static final String TAG = DivxStage.class.getSimpleName(); 15 | public static final int HOST_ID = 8; 16 | 17 | @Override 18 | public int getId() { 19 | return HOST_ID; 20 | } 21 | 22 | @Override 23 | public String getName() { 24 | return "DivxStage"; 25 | } 26 | 27 | @Override 28 | public boolean isEnabled() { 29 | return true; 30 | } 31 | 32 | @Override 33 | public String getVideoPath(DetailActivity.QueryPlayTask queryTask) { 34 | if(TextUtils.isEmpty(url)) return null; 35 | try { 36 | url = url.replace("/Out/?s=", ""); 37 | Log.d(TAG, "Resolve " + url); 38 | String videoId = url.substring(url.lastIndexOf("/") + 1); 39 | Log.d(TAG, "API call to " + "http://www.divxstage.to/mobile/ajax.php?videoId=" + videoId); 40 | queryTask.updateProgress(queryTask.getContext().getString(R.string.host_progress_getvideoforid, videoId)); 41 | JSONObject json = Utils.readJson("http://www.divxstage.to/mobile/ajax.php?videoId=" + videoId); 42 | return Utils.getRedirectTarget("http://www.divxstage.to/mobile/" + json.getJSONArray("items").getJSONObject(0).getString("download")); 43 | } catch (JSONException e) { 44 | e.printStackTrace(); 45 | } 46 | return null; 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /app/src/main/res/layout/fragment_list.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 17 | 18 | 24 | 25 |