Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import tkinter as tk
- from tkinter import ttk, scrolledtext
- import requests
- def save_m3u():
- selected_country = country_combo.get()
- if selected_country:
- url = countries[selected_country]
- response = requests.get(url)
- filename = f"{selected_country}.m3u"
- with open(filename, "wb") as f:
- f.write(response.content)
- print(f"{filename} saved successfully!")
- def show_m3u():
- selected_country = country_combo.get()
- if selected_country:
- url = countries[selected_country]
- response = requests.get(url)
- display_m3u(response.content.decode("utf-8"))
- def display_m3u(contents):
- text.delete(1.0, tk.END)
- text.insert(tk.END, contents)
- # M3U URLs
- countries = {
- "Afghanistan": "https://iptv-org.github.io/iptv/countries/af.m3u",
- "๐ฆ๐ฑ Albania": "https://iptv-org.github.io/iptv/countries/al.m3u",
- "๐ฉ๐ฟ Algeria": "https://iptv-org.github.io/iptv/countries/dz.m3u",
- "๐ฆ๐ธ American Samoa": "https://iptv-org.github.io/iptv/countries/as.m3u",
- "๐ฆ๐ฉ Andorra": "https://iptv-org.github.io/iptv/countries/ad.m3u",
- "๐ฆ๐ด Angola": "https://iptv-org.github.io/iptv/countries/ao.m3u",
- "๐ฆ๐ฎ Anguilla": "https://iptv-org.github.io/iptv/countries/ai.m3u",
- "๐ฆ๐ฌ Antigua and Barbuda": "https://iptv-org.github.io/iptv/countries/ag.m3u",
- "๐ฆ๐ท Argentina": "https://iptv-org.github.io/iptv/countries/ar.m3u",
- "๐ฆ๐ฒ Armenia": "https://iptv-org.github.io/iptv/countries/am.m3u",
- "๐ฆ๐ผ Aruba": "https://iptv-org.github.io/iptv/countries/aw.m3u",
- "๐ฆ๐บ Australia": "https://iptv-org.github.io/iptv/countries/au.m3u",
- "๐ฆ๐น Austria": "https://iptv-org.github.io/iptv/countries/at.m3u",
- "๐ฆ๐ฟ Azerbaijan": "https://iptv-org.github.io/iptv/countries/az.m3u",
- "๐ง๐ธ Bahamas": "https://iptv-org.github.io/iptv/countries/bs.m3u",
- "๐ง๐ญ Bahrain": "https://iptv-org.github.io/iptv/countries/bh.m3u",
- "๐ง๐ฉ Bangladesh": "https://iptv-org.github.io/iptv/countries/bd.m3u",
- "๐ง๐ง Barbados": "https://iptv-org.github.io/iptv/countries/bb.m3u",
- "๐ง๐พ Belarus": "https://iptv-org.github.io/iptv/countries/by.m3u",
- "๐ง๐ช Belgium": "https://iptv-org.github.io/iptv/countries/be.m3u",
- "๐ง๐ฟ Belize": "https://iptv-org.github.io/iptv/countries/bz.m3u",
- "๐ง๐ฏ Benin": "https://iptv-org.github.io/iptv/countries/bj.m3u",
- "๐ง๐ฒ Bermuda": "https://iptv-org.github.io/iptv/countries/bm.m3u",
- "๐ง๐น Bhutan": "https://iptv-org.github.io/iptv/countries/bt.m3u",
- "๐ง๐ด Bolivia": "https://iptv-org.github.io/iptv/countries/bo.m3u",
- "๐ง๐ถ Bonaire": "https://iptv-org.github.io/iptv/countries/bq.m3u",
- "๐ง๐ฆ Bosnia and Herzegovina": "https://iptv-org.github.io/iptv/countries/ba.m3u",
- "๐ง๐ผ Botswana": "https://iptv-org.github.io/iptv/countries/bw.m3u",
- "๐ง๐ป Bouvet Island": "https://iptv-org.github.io/iptv/countries/bv.m3u",
- "๐ง๐ท Brazil": "https://iptv-org.github.io/iptv/countries/br.m3u",
- "๐ป๐ฌ British Virgin Islands": "https://iptv-org.github.io/iptv/countries/vg.m3u",
- "๐ง๐ณ Brunei": "https://iptv-org.github.io/iptv/countries/bn.m3u",
- "๐ง๐ฌ Bulgaria": "https://iptv-org.github.io/iptv/countries/bg.m3u",
- "๐ง๐ซ Burkina Faso": "https://iptv-org.github.io/iptv/countries/bf.m3u",
- "๐ง๐ฎ Burundi": "https://iptv-org.github.io/iptv/countries/bi.m3u",
- "๐ฐ๐ญ Cambodia": "https://iptv-org.github.io/iptv/countries/kh.m3u",
- "๐จ๐ฒ Cameroon": "https://iptv-org.github.io/iptv/countries/cm.m3u",
- "๐จ๐ฆ Canada": "https://iptv-org.github.io/iptv/countries/ca.m3u",
- "๐จ๐ป Cape Verde": "https://iptv-org.github.io/iptv/countries/cv.m3u",
- "๐ง๐ถ Caribbean Netherlands": "https://iptv-org.github.io/iptv/countries/bq.m3u",
- "๐ฐ๐พ Cayman Islands": "https://iptv-org.github.io/iptv/countries/ky.m3u",
- "๐จ๐ซ Central African Republic": "https://iptv-org.github.io/iptv/countries/cf.m3u",
- "๐น๐ฉ Chad": "https://iptv-org.github.io/iptv/countries/td.m3u",
- "๐จ๐ฑ Chile": "https://iptv-org.github.io/iptv/countries/cl.m3u",
- "๐จ๐ณ China": "https://iptv-org.github.io/iptv/countries/cn.m3u",
- "๐จ๐ฝ Christmas Island": "https://iptv-org.github.io/iptv/countries/cx.m3u",
- "๐จ๐จ Cocos Islands": "https://iptv-org.github.io/iptv/countries/cc.m3u",
- "๐จ๐ด Colombia": "https://iptv-org.github.io/iptv/countries/co.m3u",
- "๐ฐ๐ฒ Comoros": "https://iptv-org.github.io/iptv/countries/km.m3u",
- "๐จ๐ฌ Congo": "https://iptv-org.github.io/iptv/countries/cg.m3u",
- "๐จ๐ฉ Congo DR": "https://iptv-org.github.io/iptv/countries/cd.m3u",
- "๐จ๐ฐ Cook Islands": "https://iptv-org.github.io/iptv/countries/ck.m3u",
- "๐จ๐ท Costa Rica": "https://iptv-org.github.io/iptv/countries/cr.m3u",
- "๐ญ๐ท Croatia": "https://iptv-org.github.io/iptv/countries/hr.m3u",
- "๐จ๐บ Cuba": "https://iptv-org.github.io/iptv/countries/cu.m3u",
- "๐จ๐ผ Curaรงao": "https://iptv-org.github.io/iptv/countries/cw.m3u",
- "๐จ๐พ Cyprus": "https://iptv-org.github.io/iptv/countries/cy.m3u",
- "๐จ๐ฟ Czech Republic": "https://iptv-org.github.io/iptv/countries/cz.m3u",
- "๐ฉ๐ฐ Denmark": "https://iptv-org.github.io/iptv/countries/dk.m3u",
- "๐ฉ๐ฏ Djibouti": "https://iptv-org.github.io/iptv/countries/dj.m3u",
- "๐ฉ๐ฒ Dominica": "https://iptv-org.github.io/iptv/countries/dm.m3u",
- "๐ฉ๐ด Dominican Republic": "https://iptv-org.github.io/iptv/countries/do.m3u",
- "๐ช๐จ Ecuador": "https://iptv-org.github.io/iptv/countries/ec.m3u",
- "๐ช๐ฌ Egypt": "https://iptv-org.github.io/iptv/countries/eg.m3u",
- "๐ธ๐ป El Salvador": "https://iptv-org.github.io/iptv/countries/sv.m3u",
- "๐ฌ๐ถ Equatorial Guinea": "https://iptv-org.github.io/iptv/countries/gq.m3u",
- "๐ช๐ท Eritrea": "https://iptv-org.github.io/iptv/countries/er.m3u",
- "๐ช๐ช Estonia": "https://iptv-org.github.io/iptv/countries/ee.m3u",
- "๐ช๐น Ethiopia": "https://iptv-org.github.io/iptv/countries/et.m3u",
- "๐ซ๐ด Faroe Islands": "https://iptv-org.github.io/iptv/countries/fo.m3u",
- "๐ซ๐ฏ Fiji": "https://iptv-org.github.io/iptv/countries/fj.m3u",
- "๐ซ๐ฎ Finland": "https://iptv-org.github.io/iptv/countries/fi.m3u",
- "๐ซ๐ท France": "https://iptv-org.github.io/iptv/countries/fr.m3u",
- "๐ฌ๐ซ French Guiana": "https://iptv-org.github.io/iptv/countries/gf.m3u",
- "๐ต๐ซ French Polynesia": "https://iptv-org.github.io/iptv/countries/pf.m3u",
- "๐น๐ซ French Southern Territories": "https://iptv-org.github.io/iptv/countries/tf.m3u",
- "๐ฌ๐ฆ Gabon": "https://iptv-org.github.io/iptv/countries/ga.m3u",
- "๐ฌ๐ฒ Gambia": "https://iptv-org.github.io/iptv/countries/gm.m3u",
- "๐ฌ๐ช Georgia": "https://iptv-org.github.io/iptv/countries/ge.m3u",
- "๐ฉ๐ช Germany": "https://iptv-org.github.io/iptv/countries/de.m3u",
- "๐ฌ๐ญ Ghana": "https://iptv-org.github.io/iptv/countries/gh.m3u",
- "๐ฌ๐ฎ Gibraltar": "https://iptv-org.github.io/iptv/countries/gi.m3u",
- "๐ฌ๐ท Greece": "https://iptv-org.github.io/iptv/countries/gr.m3u",
- "๐ฌ๐ฑ Greenland": "https://iptv-org.github.io/iptv/countries/gl.m3u",
- "๐ฌ๐ฉ Grenada": "https://iptv-org.github.io/iptv/countries/gd.m3u",
- "๐ฌ๐ต Guadeloupe": "https://iptv-org.github.io/iptv/countries/gp.m3u",
- "๐ฌ๐บ Guam": "https://iptv-org.github.io/iptv/countries/gu.m3u",
- "๐ฌ๐น Guatemala": "https://iptv-org.github.io/iptv/countries/gt.m3u",
- "๐ฌ๐ฌ Guernsey": "https://iptv-org.github.io/iptv/countries/gg.m3u",
- "๐ฌ๐ณ Guinea": "https://iptv-org.github.io/iptv/countries/gn.m3u",
- "๐ฌ๐ผ Guinea-Bissau": "https://iptv-org.github.io/iptv/countries/gw.m3u",
- "๐ฌ๐พ Guyana": "https://iptv-org.github.io/iptv/countries/gy.m3u",
- "๐ญ๐น Haiti": "https://iptv-org.github.io/iptv/countries/ht.m3u",
- "๐ญ๐ณ Honduras": "https://iptv-org.github.io/iptv/countries/hn.m3u",
- "๐ญ๐ฐ Hong Kong": "https://iptv-org.github.io/iptv/countries/hk.m3u",
- "๐ญ๐บ Hungary": "https://iptv-org.github.io/iptv/countries/hu.m3u",
- "๐ฎ๐ธ Iceland": "https://iptv-org.github.io/iptv/countries/is.m3u",
- "๐ฎ๐ณ India": "https://iptv-org.github.io/iptv/countries/in.m3u",
- "๐ฎ๐ฉ Indonesia": "https://iptv-org.github.io/iptv/countries/id.m3u",
- "๐ฎ๐ท Iran": "https://iptv-org.github.io/iptv/countries/ir.m3u",
- "๐ฎ๐ถ Iraq": "https://iptv-org.github.io/iptv/countries/iq.m3u",
- "๐ฎ๐ช Ireland": "https://iptv-org.github.io/iptv/countries/ie.m3u",
- "๐ฎ๐ฒ Isle of Man": "https://iptv-org.github.io/iptv/countries/im.m3u",
- "๐ฎ๐ฑ Israel": "https://iptv-org.github.io/iptv/countries/il.m3u",
- "๐ฎ๐น Italy": "https://iptv-org.github.io/iptv/countries/it.m3u",
- "๐ฏ๐ฒ Jamaica": "https://iptv-org.github.io/iptv/countries/jm.m3u",
- "๐ฏ๐ต Japan": "https://iptv-org.github.io/iptv/countries/jp.m3u",
- "๐ฏ๐ช Jersey": "https://iptv-org.github.io/iptv/countries/je.m3u",
- "๐ฏ๐ด Jordan": "https://iptv-org.github.io/iptv/countries/jo.m3u",
- "๐ฐ๐ฟ Kazakhstan": "https://iptv-org.github.io/iptv/countries/kz.m3u",
- "๐ฐ๐ช Kenya": "https://iptv-org.github.io/iptv/countries/ke.m3u",
- "๐ฐ๐ฎ Kiribati": "https://iptv-org.github.io/iptv/countries/ki.m3u",
- "๐ฝ๐ฐ Kosovo": "https://iptv-org.github.io/iptv/countries/xk.m3u",
- "๐ฐ๐ผ Kuwait": "https://iptv-org.github.io/iptv/countries/kw.m3u",
- "๐ฐ๐ฌ Kyrgyzstan": "https://iptv-org.github.io/iptv/countries/kg.m3u",
- "๐ฑ๐ฆ Laos": "https://iptv-org.github.io/iptv/countries/la.m3u",
- "๐ฑ๐ป Latvia": "https://iptv-org.github.io/iptv/countries/lv.m3u",
- "๐ฑ๐ง Lebanon": "https://iptv-org.github.io/iptv/countries/lb.m3u",
- "๐ฑ๐ธ Lesotho": "https://iptv-org.github.io/iptv/countries/ls.m3u",
- "๐ฑ๐ท Liberia": "https://iptv-org.github.io/iptv/countries/lr.m3u",
- "๐ฑ๐พ Libya": "https://iptv-org.github.io/iptv/countries/ly.m3u",
- "๐ฑ๐ฎ Liechtenstein": "https://iptv-org.github.io/iptv/countries/li.m3u",
- "๐ฑ๐น Lithuania": "https://iptv-org.github.io/iptv/countries/lt.m3u",
- "๐ฑ๐บ Luxembourg": "https://iptv-org.github.io/iptv/countries/lu.m3u",
- "๐ฒ๐ด Macao": "https://iptv-org.github.io/iptv/countries/mo.m3u",
- "๐ฒ๐ฐ Macedonia": "https://iptv-org.github.io/iptv/countries/mk.m3u",
- "๐ฒ๐ฌ Madagascar": "https://iptv-org.github.io/iptv/countries/mg.m3u",
- "๐ฒ๐ผ Malawi": "https://iptv-org.github.io/iptv/countries/mw.m3u",
- "๐ฒ๐พ Malaysia": "https://iptv-org.github.io/iptv/countries/my.m3u",
- "๐ฒ๐ป Maldives": "https://iptv-org.github.io/iptv/countries/mv.m3u",
- "๐ฒ๐ฑ Mali": "https://iptv-org.github.io/iptv/countries/ml.m3u",
- "๐ฒ๐น Malta": "https://iptv-org.github.io/iptv/countries/mt.m3u",
- "๐ฒ๐ญ Marshall Islands": "https://iptv-org.github.io/iptv/countries/mh.m3u",
- "๐ฒ๐ถ Martinique": "https://iptv-org.github.io/iptv/countries/mq.m3u",
- "๐ฒ๐ท Mauritania": "https://iptv-org.github.io/iptv/countries/mr.m3u",
- "๐ฒ๐บ Mauritius": "https://iptv-org.github.io/iptv/countries/mu.m3u",
- "๐พ๐น Mayotte": "https://iptv-org.github.io/iptv/countries/yt.m3u",
- "๐ฒ๐ฝ Mexico": "https://iptv-org.github.io/iptv/countries/mx.m3u",
- "๐ซ๐ฒ Micronesia": "https://iptv-org.github.io/iptv/countries/fm.m3u",
- "๐ฒ๐ฉ Moldova": "https://iptv-org.github.io/iptv/countries/md.m3u",
- "๐ฒ๐จ Monaco": "https://iptv-org.github.io/iptv/countries/mc.m3u",
- "๐ฒ๐ณ Mongolia": "https://iptv-org.github.io/iptv/countries/mn.m3u",
- "๐ฒ๐ช Montenegro": "https://iptv-org.github.io/iptv/countries/me.m3u",
- "๐ฒ๐ธ Montserrat": "https://iptv-org.github.io/iptv/countries/ms.m3u",
- "๐ฒ๐ฆ Morocco": "https://iptv-org.github.io/iptv/countries/ma.m3u",
- "๐ฒ๐ฟ Mozambique": "https://iptv-org.github.io/iptv/countries/mz.m3u",
- "๐ฒ๐ฒ Myanmar": "https://iptv-org.github.io/iptv/countries/mm.m3u",
- "๐ณ๐ฆ Namibia": "https://iptv-org.github.io/iptv/countries/na.m3u",
- "๐ณ๐ท Nauru": "https://iptv-org.github.io/iptv/countries/nr.m3u",
- "๐ณ๐ต Nepal": "https://iptv-org.github.io/iptv/countries/np.m3u",
- "๐ณ๐ฑ Netherlands": "https://iptv-org.github.io/iptv/countries/nl.m3u",
- "๐ณ๐จ New Caledonia": "https://iptv-org.github.io/iptv/countries/nc.m3u",
- "๐ณ๐ฟ New Zealand": "https://iptv-org.github.io/iptv/countries/nz.m3u",
- "๐ณ๐ฎ Nicaragua": "https://iptv-org.github.io/iptv/countries/ni.m3u",
- "๐ณ๐ช Niger": "https://iptv-org.github.io/iptv/countries/ne.m3u",
- "๐ณ๐ฌ Nigeria": "https://iptv-org.github.io/iptv/countries/ng.m3u",
- "๐ณ๐บ Niue": "https://iptv-org.github.io/iptv/countries/nu.m3u",
- "๐ณ๐ซ Norfolk Island": "https://iptv-org.github.io/iptv/countries/nf.m3u",
- "๐ฐ๐ต North Korea": "https://iptv-org.github.io/iptv/countries/kp.m3u",
- "๐ฒ๐ต Northern Mariana Islands": "https://iptv-org.github.io/iptv/countries/mp.m3u",
- "๐ณ๐ด Norway": "https://iptv-org.github.io/iptv/countries/no.m3u",
- "๐ด๐ฒ Oman": "https://iptv-org.github.io/iptv/countries/om.m3u",
- "๐ต๐ฐ Pakistan": "https://iptv-org.github.io/iptv/countries/pk.m3u",
- "๐ต๐ผ Palau": "https://iptv-org.github.io/iptv/countries/pw.m3u",
- "๐ต๐ธ Palestine": "https://iptv-org.github.io/iptv/countries/ps.m3u",
- "๐ต๐ฆ Panama": "https://iptv-org.github.io/iptv/countries/pa.m3u",
- "๐ต๐ฌ Papua New Guinea": "https://iptv-org.github.io/iptv/countries/pg.m3u",
- "๐ต๐พ Paraguay": "https://iptv-org.github.io/iptv/countries/py.m3u",
- "๐ต๐ช Peru": "https://iptv-org.github.io/iptv/countries/pe.m3u",
- "๐ต๐ญ Philippines": "https://iptv-org.github.io/iptv/countries/ph.m3u",
- "๐ต๐ณ Pitcairn": "https://iptv-org.github.io/iptv/countries/pn.m3u",
- "๐ต๐ฑ Poland": "https://iptv-org.github.io/iptv/countries/pl.m3u",
- "๐ต๐น Portugal": "https://iptv-org.github.io/iptv/countries/pt.m3u",
- "๐ต๐ท Puerto Rico": "https://iptv-org.github.io/iptv/countries/pr.m3u",
- "๐ถ๐ฆ Qatar": "https://iptv-org.github.io/iptv/countries/qa.m3u",
- "๐ท๐ด Romania": "https://iptv-org.github.io/iptv/countries/ro.m3u",
- "๐ท๐บ Russia": "https://iptv-org.github.io/iptv/countries/ru.m3u",
- "๐ท๐ผ Rwanda": "https://iptv-org.github.io/iptv/countries/rw.m3u",
- "๐ผ๐ธ Samoa": "https://iptv-org.github.io/iptv/countries/ws.m3u",
- "๐ธ๐ฒ San Marino": "https://iptv-org.github.io/iptv/countries/sm.m3u",
- "๐ธ๐น Sao Tome and Principe": "https://iptv-org.github.io/iptv/countries/st.m3u",
- "๐ธ๐ฆ Saudi Arabia": "https://iptv-org.github.io/iptv/countries/sa.m3u",
- "๐ธ๐ณ Senegal": "https://iptv-org.github.io/iptv/countries/sn.m3u",
- "๐ท๐ธ Serbia": "https://iptv-org.github.io/iptv/countries/rs.m3u",
- "๐ธ๐จ Seychelles": "https://iptv-org.github.io/iptv/countries/sc.m3u",
- "๐ธ๐ฑ Sierra Leone": "https://iptv-org.github.io/iptv/countries/sl.m3u",
- "๐ธ๐ฌ Singapore": "https://iptv-org.github.io/iptv/countries/sg.m3u",
- "๐ธ๐ฝ Sint Maarten": "https://iptv-org.github.io/iptv/countries/sx.m3u",
- "๐ธ๐ฐ Slovakia": "https://iptv-org.github.io/iptv/countries/sk.m3u",
- "๐ธ๐ฎ Slovenia": "https://iptv-org.github.io/iptv/countries/si.m3u",
- "๐ธ๐ง Solomon Islands": "https://iptv-org.github.io/iptv/countries/sb.m3u",
- "๐ธ๐ด Somalia": "https://iptv-org.github.io/iptv/countries/so.m3u",
- "๐ฟ๐ฆ South Africa": "https://iptv-org.github.io/iptv/countries/za.m3u",
- "๐ฐ๐ท South Korea": "https://iptv-org.github.io/iptv/countries/kr.m3u",
- "๐ธ๐ธ South Sudan": "https://iptv-org.github.io/iptv/countries/ss.m3u",
- "๐ช๐ธ Spain": "https://iptv-org.github.io/iptv/countries/es.m3u",
- "๐ฑ๐ฐ Sri Lanka": "https://iptv-org.github.io/iptv/countries/lk.m3u",
- "๐ง๐ฑ St. Barthรฉlemy": "https://iptv-org.github.io/iptv/countries/bl.m3u",
- "๐ธ๐ญ St. Helena": "https://iptv-org.github.io/iptv/countries/sh.m3u",
- "๐ฐ๐ณ St. Kitts and Nevis": "https://iptv-org.github.io/iptv/countries/kn.m3u",
- "๐ฑ๐จ St. Lucia": "https://iptv-org.github.io/iptv/countries/lc.m3u",
- "๐ฒ๐ซ St. Martin": "https://iptv-org.github.io/iptv/countries/mf.m3u",
- "๐ต๐ฒ St. Pierre and Miquelon": "https://iptv-org.github.io/iptv/countries/pm.m3u",
- "๐ป๐จ St. Vincent and Grenadines": "https://iptv-org.github.io/iptv/countries/vc.m3u",
- "๐ธ๐ฉ Sudan": "https://iptv-org.github.io/iptv/countries/sd.m3u",
- "๐ธ๐ท Suriname": "https://iptv-org.github.io/iptv/countries/sr.m3u",
- "๐ธ๐ฏ Svalbard and Jan Mayen": "https://iptv-org.github.io/iptv/countries/sj.m3u",
- "๐ธ๐ฟ Swaziland": "https://iptv-org.github.io/iptv/countries/sz.m3u",
- "๐ธ๐ช Sweden": "https://iptv-org.github.io/iptv/countries/se.m3u",
- "๐จ๐ญ Switzerland": "https://iptv-org.github.io/iptv/countries/ch.m3u",
- "๐ธ๐พ Syria": "https://iptv-org.github.io/iptv/countries/sy.m3u",
- "๐น๐ผ Taiwan": "https://iptv-org.github.io/iptv/countries/tw.m3u",
- "๐น๐ฏ Tajikistan": "https://iptv-org.github.io/iptv/countries/tj.m3u",
- "๐น๐ฟ Tanzania": "https://iptv-org.github.io/iptv/countries/tz.m3u",
- "๐น๐ญ Thailand": "https://iptv-org.github.io/iptv/countries/th.m3u",
- "๐น๐ฑ Timor-Leste": "https://iptv-org.github.io/iptv/countries/tl.m3u",
- "๐น๐ฌ Togo": "https://iptv-org.github.io/iptv/countries/tg.m3u",
- "๐น๐ฐ Tokelau": "https://iptv-org.github.io/iptv/countries/tk.m3u",
- "๐น๐ด Tonga": "https://iptv-org.github.io/iptv/countries/to.m3u",
- "๐น๐น Trinidad and Tobago": "https://iptv-org.github.io/iptv/countries/tt.m3u",
- "๐น๐ณ Tunisia": "https://iptv-org.github.io/iptv/countries/tn.m3u",
- "๐น๐ท Turkey": "https://iptv-org.github.io/iptv/countries/tr.m3u",
- "๐น๐ฒ Turkmenistan": "https://iptv-org.github.io/iptv/countries/tm.m3u",
- "๐น๐จ Turks and Caicos Islands": "https://iptv-org.github.io/iptv/countries/tc.m3u",
- "๐น๐ป Tuvalu": "https://iptv-org.github.io/iptv/countries/tv.m3u",
- "๐บ๐ฌ Uganda": "https://iptv-org.github.io/iptv/countries/ug.m3u",
- "๐บ๐ฆ Ukraine": "https://iptv-org.github.io/iptv/countries/ua.m3u",
- "๐ฆ๐ช United Arab Emirates": "https://iptv-org.github.io/iptv/countries/ae.m3u",
- "๐ฌ๐ง United Kingdom": "https://iptv-org.github.io/iptv/countries/gb.m3u",
- "๐บ๐ธ United States": "https://iptv-org.github.io/iptv/countries/us.m3u",
- "๐บ๐พ Uruguay": "https://iptv-org.github.io/iptv/countries/uy.m3u",
- "๐บ๐ฟ Uzbekistan": "https://iptv-org.github.io/iptv/countries/uz.m3u",
- "๐ป๐บ Vanuatu": "https://iptv-org.github.io/iptv/countries/vu.m3u",
- "๐ป๐ฆ Vatican City": "https://iptv-org.github.io/iptv/countries/va.m3u",
- "๐ป๐ช Venezuela": "https://iptv-org.github.io/iptv/countries/ve.m3u",
- "๐ป๐ณ Vietnam": "https://iptv-org.github.io/iptv/countries/vn.m3u",
- "๐ป๐ฎ Virgin Islands": "https://iptv-org.github.io/iptv/countries/vi.m3u",
- "๐ผ๐ซ Wallis and Futuna": "https://iptv-org.github.io/iptv/countries/wf.m3u",
- "๐ช๐ญ Western Sahara": "https://iptv-org.github.io/iptv/countries/eh.m3u",
- "๐พ๐ช Yemen": "https://iptv-org.github.io/iptv/countries/ye.m3u",
- "๐ฟ๐ฒ Zambia": "https://iptv-org.github.io/iptv/countries/zm.m3u",
- "๐ฟ๐ผ Zimbabwe": "https://iptv-org.github.io/iptv/countries/zw.m3u"
- }
- # GUI setup
- root = tk.Tk()
- root.title("M3U Playlist Downloader")
- # Frame for countries
- country_frame = ttk.Frame(root)
- country_frame.pack(padx=10, pady=10)
- # Label for country dropdown list
- country_label = ttk.Label(country_frame, text="Countries:")
- country_label.grid(row=0, column=0, padx=5, pady=5)
- # Dropdown list for countries
- country_combo = ttk.Combobox(country_frame, values=list(countries.keys()))
- country_combo.grid(row=0, column=1, padx=5, pady=5)
- country_combo.current(0) # Set default value
- # Button to save M3U file for countries
- save_country_button = tk.Button(country_frame, text="Save M3U", command=save_m3u)
- save_country_button.grid(row=0, column=2, padx=5, pady=5)
- # Button to show M3U file for countries
- show_country_button = tk.Button(country_frame, text="Show M3U", command=show_m3u)
- show_country_button.grid(row=0, column=3, padx=5, pady=5)
- # Text area to display M3U
- text = scrolledtext.ScrolledText(root, width=80, height=20)
- text.pack(padx=10, pady=10)
- root.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement