Code Monkey home page Code Monkey logo

iptv-android's Introduction

IPTV-Android

Android application for live streaming. Source is taken from https://github.com/iptv-org/iptv using jsoup and m3u parse in realtime.

Screenshots

DEMO APK

iptv-android's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

iptv-android's Issues

app crash when click on refresh button

First of all, great work..
i'm facing a issue, After selecting a specific country, the application crashes when you click the refresh button on the taskbar.

Hi

Hi

Thanks for sharing the app

How can i add the channel list to the app, i tried using a m3u file in the root and app folder.

Thanks in advance

Better Playlist Parsing

The playlist parsing is missing several channels and throwing errors.
This should be a pull request, but here it goes:

PlaylistActivity.java:

private String parse_tvg(String line, String tvg_type){
	List<String> matchList = new ArrayList<String>();
	try {
		Pattern regex = Pattern.compile(tvg_type+"=\"(.*?)\"", Pattern.CASE_INSENSITIVE | Pattern.UNICODE_CASE | Pattern.MULTILINE);
		Matcher regexMatcher = regex.matcher(line);
		while (regexMatcher.find()) {
			matchList.add(regexMatcher.group());
		}
	} catch (PatternSyntaxException ex) {
		// Syntax error in the regular expression
	}
	if ( matchList.isEmpty() ){
		return  "";
	}else {
		return matchList.get(0);
	}
};


@Override
protected void onPostExecute(Void result) {
	super.onPostExecute(result);
	loading.dismiss();

	stream = stream.replace("#EXTM3U", "");
	String[] linesArray = stream.split("#EXTINF:-1");
	linesArray = Arrays.copyOfRange(linesArray, 1, linesArray.length);
	JSONArray ar = new JSONArray();

		for (String currLine : linesArray) {
			Log.e("IPTV", currLine);
			JSONObject ob = new JSONObject();

			try {
				String[] channel = currLine.split("\n");
				String url = channel[1];
				String name = channel[0 ].split(",")[1];
				String logo = parse_tvg(currLine, "tvg-logo");

				ob.put("url", url);
				ob.put("name", name);
				ob.put("logo", logo);
				ar.put(ob);

			} catch (Exception fdfd) {
				Log.e("Google", "Error: " + fdfd.fillInStackTrace());
			}
		}

		goJson = ar.toString();

		sharedPrefManager.saveSPString(SharedPrefManager.SP_CHANNELS, goJson);
		Intent intent = new Intent(mcon, ChannelsActivity.class);
		intent.putExtra("title", allData.get(key).getTitle());
		startActivity(intent);
}

virus

after i complete apk from android studio and install app there is msg virus Evo-gen????

Custom Playlist

Hello,

Can anybody tell me how can I update the list and ad my personal m3u?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.