The Movie Database 지원

Is there anyway to retrieve a network id by it's name?

For my app I am building I want the user to be able to search for upcoming shows on a particular network.

Cheers

11 댓글 (1 / 1)

Jump to last post

BUMP any ideas? I really need a way to find out what series are airing on a particular network

Hi Alex,

Unfortunately there is not by name right now. You can of course use with_networks on tv discover, but it expects an ID.

How would you want to look these up, just a network search?

Thanks Travis for getting back to me.

I just need a network search that returns the id if I search by the network name.

To be honest i'd be happy with a JSON file one off export that lists all the Networks on TMDB with their ids. I could use that in my code as it won't update that often.

Are you able to create me an export?

Ya, I have some plans for a few other small JSON files. I have an open ticket for this here. I'm hoping to get to this in the next week or so.

@travisbell said:

Ya, I have some plans for a few other small JSON files. I have an open ticket for this here. I'm hoping to get to this in the next week or so.

WIcked - if you are able to do the networks first that would be amazing- not that i'm biased or something but it would give my app some edge over the competition! ;-)

Hi Alex,

You can download a list of the TV networks on TMDb from here:

http://files.tmdb.org/p/exports/tv_network_ids_04_27_2017.json.gz

A new file is generated every day and will follow that date format. More information about what files are available will be posted tomorrow.

Hi Travis,

Great stuff - thanks!

I've had a look and extracted the zip, only issue is i'm having trouble getting this working with my NodeJS app. It doesn't appear to be valid JSON.

Can I get the export in a valid JSON format? I think the multiple root nodes means I can't parse this. Could we have each network as it's own JSON object?

Cheers

As mentioned in the docs, the file itself is not a JSON object. The way it's designed is that each line contains a JSON object which makes it easy to simply iterate over each line of the file and parse it that way.

@travisbell said:

As mentioned in the docs, the file itself is not a JSON object. The way it's designed is that each line contains a JSON object which makes it easy to simply iterate over each line of the file and parse it that way.

Sorry Travis - didn't spot that! All good now - managed to grab the network id :-)

Cheers

I would like to make use of the network list file too but I'm having problems downloading the file as it keeps telling me 403 Forbidden

Don't worry already fixed

찾으시는 영화나 TV 프로그램이 없나요? 로그인 하셔서 직접 만들어주세요.

전체

s 검색 바 띄우기
p 프로필 메뉴 열기
esc 열린 창 닫기
? 키보드 단축키 창 열기

미디어 페이지

b 돌아가기
e 편집 페이지로 이동

TV 시즌 페이지

(우 화살표) 다음 시즌으로 가기
(좌 화살표) 이전 시즌으로 가기

TV 에피소드 페이지

(우 화살표) 다음 에피소드로 가기
(좌 화살표) 이전 에피소드로 가기

모든 이미지 페이지

a 이미지 추가 창 열기

모든 편집 페이지

t 번역 선택 열기
ctrl+ s 항목 저장

토론 페이지

n 새 토론 만들기
w 보기 상태
p 공개/비공개 전환
c 열기/닫기 전환
a 활동 열기
r 댓글에 글쓰기
l 마지막 댓글로 가기
ctrl+ enter 회원님의 메세지 제출
(우 화살표) 다음 페이지
(좌 화살표) 이전 페이지

설정

Want to rate or add this item to a list?

로그인