comparison src/recpt1.c @ 151:f7f594bf4e98

If the ~/.recpt1-channels exists, do not output hard code channel info.
author Naoya OYAMA <naoya.oyama@gmail.com>
date Fri, 31 Aug 2012 23:39:46 +0900
parents a9f60d56d673
children 30e91361506a
comparison
equal deleted inserted replaced
150:036ae90f1b01 151:f7f594bf4e98
817 if(f) { 817 if(f) {
818 while(fgets(buf, 255, f)) 818 while(fgets(buf, 255, f))
819 fprintf(stderr, "%s", buf); 819 fprintf(stderr, "%s", buf);
820 fclose(f); 820 fclose(f);
821 } 821 }
822 else 822 else {
823 fprintf(stderr, "13-62: Terrestrial Channels\n"); 823 fprintf(stderr, "13-62: Terrestrial Channels\n");
824 824 fprintf(stderr, "101ch: NHK BS1\n");
825 fprintf(stderr, "101ch: NHK BS1\n"); 825 fprintf(stderr, "102ch: NHK BS2\n");
826 fprintf(stderr, "102ch: NHK BS2\n"); 826 fprintf(stderr, "103ch: NHK BShi\n");
827 fprintf(stderr, "103ch: NHK BShi\n"); 827 fprintf(stderr, "141ch: BS Nittele\n");
828 fprintf(stderr, "141ch: BS Nittele\n"); 828 fprintf(stderr, "151ch: BS Asahi\n");
829 fprintf(stderr, "151ch: BS Asahi\n"); 829 fprintf(stderr, "161ch: BS-TBS\n");
830 fprintf(stderr, "161ch: BS-TBS\n"); 830 fprintf(stderr, "171ch: BS Japan\n");
831 fprintf(stderr, "171ch: BS Japan\n"); 831 fprintf(stderr, "181ch: BS Fuji\n");
832 fprintf(stderr, "181ch: BS Fuji\n"); 832 fprintf(stderr, "191ch: WOWOW\n");
833 fprintf(stderr, "191ch: WOWOW\n"); 833 fprintf(stderr, "192ch: WOWOW2\n");
834 fprintf(stderr, "192ch: WOWOW2\n"); 834 fprintf(stderr, "193ch: WOWOW3\n");
835 fprintf(stderr, "193ch: WOWOW3\n"); 835 fprintf(stderr, "200ch: Star Channel\n");
836 fprintf(stderr, "200ch: Star Channel\n"); 836 fprintf(stderr, "211ch: BS11 Digital\n");
837 fprintf(stderr, "211ch: BS11 Digital\n"); 837 fprintf(stderr, "222ch: TwellV\n");
838 fprintf(stderr, "222ch: TwellV\n"); 838 fprintf(stderr, "C13-C63: CATV Channels\n");
839 fprintf(stderr, "C13-C63: CATV Channels\n"); 839 fprintf(stderr, "CS2-CS24: CS Channels\n");
840 fprintf(stderr, "CS2-CS24: CS Channels\n"); 840 }
841 } 841 }
842 842
843 float 843 float
844 getsignal_isdb_s(int signal) 844 getsignal_isdb_s(int signal)
845 { 845 {