Method: Ariblib::EventInformationTable::SelfWeeklyMultiEventSchedule#check

Defined in:
lib/ariblib/EventInformationTable.rb

#check(uid, tid, last_tid, seg_last, list) ⇒ Object



41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/ariblib/EventInformationTable.rb', line 41

def check(uid,tid,last_tid,seg_last,list)
  if tid ==0x4e00 && list.size >0#自ストリーム現在地
    unless @cur
      tmp=list[0][1]
      @cur=0 if @table.bsearch{|v|v[1]>=tmp}
    end
  elsif tid < 0x5000 #他ストリームnext
  elsif tid < 0x5200 #自ストリームtable 0x1ff -> 3f
    @end=list.last if @end==nil and tid==last_tid #and list.size >0
    tmp=@table && @start[2]
    list.each do |v|
      next unless v[3][:title]
      @table << v
    end
  end
end