xml 开源/免费通用 EPG/XMLTV 数据 API 或服务,或者如何制作?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5030422/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-06 14:33:03  来源:igfitidea点击:

Open-source / free universal EPG / XMLTV data API or service, or how to make one?

xmldatasourceapi-designtelevisionepg

提问by Bryan Chug

I am looking for (an open-source, aka "free") data-source for universal EPG / XMLTV services?

我正在为通用 EPG/XMLTV 服务寻找(开源,又名“免费”)数据源?

The project needs updated/updateable real-time TV scheduling info, in an easily parsable format. It also MUST be available at no cost or a VERY liberal license. Thanks for any advice or alternatives.

该项目需要以易于解析的格式更新/可更新的实时电视调度信息。它也必须是免费的或非常自由的许可证。感谢您提供任何建议或替代方案。

I am open to coding my own solution, if anyone has some suggestions on where to start.

如果有人对从哪里开始有一些建议,我愿意编写自己的解决方案。

回答by Alex Gray

Annoyingly, there is apparently NOTa free provider of USA EPG data... (Unless you consider the OTA EPG signal "a provider"...) (see UPDATEsolution below)

令人讨厌的是,显然没有美国 EPG 数据的免费提供商......(除非您将 OTA EPG 信号视为“提供商”......) (请参阅下面的更新解决方案)

TitanTV.comhas a nice, free, grid service, but I do not think they still provide a feed, although they used to....

TitanTV.com有一个不错的、免费的网格服务,但我不认为他们仍然提供提要,尽管他们曾经......

One pretty good sounding option is.. ZAP2XML

一个听起来不错的选择是.. ZAP2XML

zap2xml is a small and fast command line script for Windows/Linux/OSX/* that connects to a Zap2it.com TV Listings account, downloads the tv listings grid data and converts the .html to XMLTV formatted .xml or XTVD formatted .xml

zap2xml 是一个适用于 Windows/Linux/OSX/* 的小型快速命令行脚本,它连接到 Zap2it.com 电视列表帐户,下载电视列表网格数据并将 .html 转换为 XMLTV 格式的 .xml 或 XTVD 格式的 .xml

Cannot vouch for "zap" personally, but the method/concept is sound, if not their specific implementation...

不能亲自担保“zap”,但方法/概念是合理的,如果不是他们的具体实现......

If you can rock $20 a year, the easy way is.. Schedules Direct, a non-profit organizationthat provides EPG for Open Source Software.

如果您每年能赚 20 美元,那么简单的方法是.. Schedules Direct,一个为开源软件提供 EPG的非营利组织

The cost of membership is currently US$20/year, with a 7 day free trial. A 2 month membership is also available for US$5 for those who do not wish to commit to an entire year.

目前会员费用为 20 美元/年,可免费试用 7 天。对于那些不想承诺一整年的人,也可以花 5 美元获得 2 个月的会员资格。

Also, Here is a good listof scrapers / XMLTV processors.

此外,这是一个很好的刮板/ XMLTV 处理器列表

UPDATE: YAY. I totally hunted down a FREE, and REALLY nice solution..

更新:是的。我完全找到了一个免费的,非常好的解决方案..

This is where I found out how to..download XMLTV and this gunky little binarythat end you up here....

这是我发现如何..下载 XMLTV 和最终你在这里的这个笨拙的小二进制文件的地方..

    Loading ..... : mc2xml (c) <[email protected]> (v1.0)
Reminder .... : Unauthorized redistribution prohibited.
Reminder .... : If this software is useful, please donate!
Connecting .. : microsoft.com

Select lineup: 

  0: Digital Terrestrial Lineup (TER)
  1: Fresh Meadows, Verizon Fios Queens (CAB)
  2: Fresh Meadows, Verizon Fios Queens (Digital) (CAB)
  3: New York, DIRECTV New York (SAT)
  4: New York, DISH New York (SAT)
  5: New York, NYU Campus Cable (CAB)
  6: New York, RCN Cable (CAB)
  7: New York, RCN Cable (Digital) (CAB)
  8: New York, Rainbow Satellite The Tate (CAB)
  9: New York, Time Warner Cable St. Vincent Medical (CAB)
 10: New York, Time Warner Southern Manhattan (CAB)
 11: New York, Time Warner Southern Manhattan (Cable-ready TV) (CAB)
 12: New York, Time Warner Southern Manhattan (Digital) (CAB)
 13: New York, Verizon Fios New York Plus (CAB)
 14: New York, Verizon Fios New York Plus (Digital) (CAB)
 15: USA, AFN Satellite (SAT)
 16: USA, DIRECTV (SAT)
 17: USA, DISH Network (SAT)
 18: USA, Globecast World TV (SAT)
 19: USA, Sky Angel (SAT)

[mc2xml] (0-19): 0

Downloading . : microsoft.com
Downloaded .. : 409896 bytes in 1s
Source ...... : Zap2it
Headend ..... : 28521459 (B07010-)
Version ..... : 2784784406
Start time .. : 2011-09-13T

Now THAT is how it SHOULD be. Amen. Just open up the resulting XML file in EyeTV, or what have you.. and keep that sucker updated via CRON or launchd, etc.

现在应该是这样。阿门。只需在 EyeTV 中打开生成的 XML 文件,或者你有什么……并通过 CRON 或 launchd 等更新该傻瓜。

He says you need to put it in a web accessible directory, but I don't see why.... and also, I had to run it the first time like this...

他说你需要把它放在一个网络可访问的目录中,但我不明白为什么......而且,我第一次必须像这样运行它......

../eyetv/mc2xml -c us -g 10011

../eyetv/mc2xml -c us -g 10011

with -c usrepresenting where I be from, the U.S.A... and -g 10011further geolocating me to my postal zip code for stalking and raping purposes.... don't forget to vote, goodnight everyone!

-c us代表,我是来自美国的..并-g 10011进一步进行地理定位我对我的邮政编码后的跟踪和强奸的目的.... 不要忘记投票,大家晚安!

回答by RemoteSojourner

http://www.mythtv.org/wiki/XMLTVhas lot of sources but they are country specific. Not sure of a Universal one.

http://www.mythtv.org/wiki/XMLTV有很多来源,但它们是针对特定国家的。不确定一个通用的。

回答by Gordon Thompson

How about MetaBroadcast?

MetaBroadcast 怎么样?

http://metabroadcast.com/products

http://metabroadcast.com/products

They support XMLTV and there are free APIs to my knowledge..

他们支持 XMLTV,据我所知有免费的 API。