/cl измени чтобы если у "ts" не указан параметр, то ты указываешь для него параметр int(time.time()) текущее время в секундах минус 30 секунд 
.method private getStream(ZJZLag/a24h/api/models/Stream$LoaderOne;)V
    .locals 11

    move-object v7, p0

    move-wide v5, p2

    const/4 v0, 0x1

    .line 810
    sput-boolean v0, Lag/a24h/api/v3/ChannelList;->startingPlayback:Z

    .line 811
    iget-wide v1, v7, Lag/a24h/api/v3/ChannelList;->id:J

    iget-object v3, v7, Lag/a24h/api/v3/ChannelList;->name:Ljava/lang/String;

    invoke-static {v1, v2, v3}, Lag/common/tools/GlobalVar;->stat(JLjava/lang/String;)V

    const/4 v1, 0x0

    const-wide/16 v2, 0x0

    cmp-long v4, v5, v2

    if-nez v4, :cond_0

    const/4 v4, 0x1

    goto :goto_0

    :cond_0
    const/4 v4, 0x0

    .line 812
    :goto_0
    sput-boolean v4, Lag/a24h/api/v3/ChannelList;->playbackLive:Z

    .line 813
    invoke-static {}, Lag/common/tools/GlobalVar;->GlobalVars()Lag/common/tools/GlobalVar;

    move-result-object v4

    iget-wide v8, v7, Lag/a24h/api/v3/ChannelList;->id:J

    long-to-int v9, v8

    const-string v8, "channel"

    invoke-virtual {v4, v8, v9}, Lag/common/tools/GlobalVar;->setPrefInt(Ljava/lang/String;I)I

    .line 814
    new-instance v8, Ljava/util/HashMap;

    invoke-direct {v8}, Ljava/util/HashMap;-><init>()V

    cmp-long v4, v5, v2

    if-lez v4, :cond_1

    .line 815
    invoke-static {p2, p3}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v4

    const-string/jumbo v9, "ts"

    invoke-virtual {v8, v9, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 816
    :cond_1
    invoke-static {p1}, Ljava/lang/String;->valueOf(Z)Ljava/lang/String;

    move-result-object v4

    const-string v9, "history"

    invoke-virtual {v8, v9, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 818
    invoke-static {}, Lag/a24h/api/models/Stream;->streamType()Lag/a24h/api/models/Stream$StreamType;

    move-result-object v4

    invoke-virtual {v4, p2, p3}, Lag/a24h/api/models/Stream$StreamType;->getKey(J)Ljava/lang/String;

    move-result-object v4

    const-string/jumbo v9, "type"

    invoke-virtual {v8, v9, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 820
    invoke-static {}, Lag/a24h/_leanback/playback/utils/ScreenState;->isFullScreen()Z

    move-result v4

    xor-int/2addr v4, v0

    invoke-static {v4}, Ljava/lang/String;->valueOf(Z)Ljava/lang/String;

    move-result-object v4

    const-string v10, "preview"

    invoke-virtual {v8, v10, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 822
    invoke-static {}, Lag/common/tools/GlobalVar;->GlobalVars()Lag/common/tools/GlobalVar;

    move-result-object v4

    const-string/jumbo v10, "stop"

    invoke-virtual {v4, v10, v2, v3}, Lag/common/tools/GlobalVar;->action(Ljava/lang/String;J)V

    .line 823
    invoke-static {}, Lag/common/tools/GlobalVar;->GlobalVars()Lag/common/tools/GlobalVar;

    move-result-object v4

    const-string v10, "createPlayer"

    invoke-virtual {v4, v10, v2, v3}, Lag/common/tools/GlobalVar;->action(Ljava/lang/String;J)V

    if-eqz p4, :cond_2

    .line 826
    sget v2, Landroid/os/Build$VERSION;->SDK_INT:I

    invoke-static {}, Lag/common/tools/WinTools;->getContext()Landroid/content/Context;

    move-result-object v3

    invoke-virtual {v3}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v3

    sget v4, Lag/a24h/R$integer;->vitrina_sdk_version:I

    invoke-virtual {v3, v4}, Landroid/content/res/Resources;->getInteger(I)I

    move-result v3

    if-lt v2, v3, :cond_3

    const-string v2, "config"

    .line 827
    invoke-virtual {v8, v9, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_1

    .line 830
    :cond_2
    sget-object v2, Lag/a24h/api/v3/ChannelList;->TAG:Ljava/lang/String;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "play url: is4k "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-boolean v4, v7, Lag/a24h/api/v3/ChannelList;->is4k:Z

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    const-string v4, " local:"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-static {}, Lag/a24h/api/models/Stream;->streamType()Lag/a24h/api/models/Stream$StreamType;

    move-result-object v4

    invoke-virtual {v4, p2, p3}, Lag/a24h/api/models/Stream$StreamType;->getKey(J)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v4, " support: "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-static {}, Lag/tools/Is4k;->isSupport()Z

    move-result v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 831
    iget-boolean v2, v7, Lag/a24h/api/v3/ChannelList;->is4k:Z

    if-eqz v2, :cond_3

    invoke-static {}, Lag/a24h/api/models/Stream;->streamType()Lag/a24h/api/models/Stream$StreamType;

    move-result-object v2

    invoke-virtual {v2, p2, p3}, Lag/a24h/api/models/Stream$StreamType;->getKey(J)Ljava/lang/String;

    move-result-object v2

    const-string v3, "local"

    invoke-virtual {v3, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_3

    .line 832
    invoke-static {}, Lag/tools/Is4k;->isSupport()Z

    move-result v2

    if-nez v2, :cond_3

    const-string v2, "hls"

    .line 833
    invoke-virtual {v8, v9, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 839
    :cond_3
    :goto_1
    invoke-static {}, Lag/a24h/_leanback/playback/players/ad/AdVitrinaCounter;->reset()V

    const/4 v2, 0x3

    new-array v9, v2, [Ljava/lang/String;

    const-string v2, "channels"

    aput-object v2, v9, v1

    .line 841
    iget-wide v1, v7, Lag/a24h/api/v3/ChannelList;->id:J

    invoke-static {v1, v2}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

    move-result-object v1

    aput-object v1, v9, v0

    const/4 v0, 0x2

    const-string/jumbo v1, "stream"

    aput-object v1, v9, v0

    new-instance v10, Lag/a24h/api/v3/ChannelList$8;

    move-object v0, v10

    move-object v1, p0

    move-object/from16 v2, p5

    move v3, p4

    move v4, p1

    move-wide v5, p2

    invoke-direct/range {v0 .. v6}, Lag/a24h/api/v3/ChannelList$8;-><init>(Lag/a24h/api/v3/ChannelList;Lag/a24h/api/models/Stream$LoaderOne;ZZJ)V

    invoke-static {v9, v10, v8}, Lag/common/data/DataSource;->call([Ljava/lang/String;Lag/common/data/ResponseObject$LoaderAll;Ljava/util/Map;)Lag/common/data/DataSource$dataClient;

    return-void
.end method