implement thubnail loading from tmdb
fix lots of errors if ' char occurs in path strings correct reverse proxy for websocket
This commit is contained in:
		@@ -42,6 +42,7 @@ class EpisodePage extends React.Component<Props, State> {
 | 
			
		||||
                <DynamicContentContainer
 | 
			
		||||
                    renderElement={(el): JSX.Element => <EpisodeTile key={el.ID} episode={el} />}
 | 
			
		||||
                    data={this.episodes}
 | 
			
		||||
                    initialLoadNr={-1}
 | 
			
		||||
                />
 | 
			
		||||
            </>
 | 
			
		||||
        );
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
import React from 'react';
 | 
			
		||||
import Preview from '../../elements/Preview/Preview';
 | 
			
		||||
import {APINode, callAPI} from '../../utils/Api';
 | 
			
		||||
import {APINode, callAPI, callAPIPlain} from '../../utils/Api';
 | 
			
		||||
import {TVShow} from '../../types/ApiTypes';
 | 
			
		||||
import DynamicContentContainer from '../../elements/DynamicContentContainer/DynamicContentContainer';
 | 
			
		||||
import {Route, Switch, useRouteMatch} from 'react-router-dom';
 | 
			
		||||
@@ -33,11 +33,21 @@ class TVShowPage extends React.Component<Props, State> {
 | 
			
		||||
                    <Preview
 | 
			
		||||
                        key={elem.Id}
 | 
			
		||||
                        name={elem.Name}
 | 
			
		||||
                        picLoader={(callback): void => callback('')}
 | 
			
		||||
                        picLoader={(callback: (pic: string) => void): void => {
 | 
			
		||||
                            callAPIPlain(
 | 
			
		||||
                                APINode.TVShow,
 | 
			
		||||
                                {
 | 
			
		||||
                                    action: 'readThumbnail',
 | 
			
		||||
                                    Id: elem.Id
 | 
			
		||||
                                },
 | 
			
		||||
                                (result) => callback(result)
 | 
			
		||||
                            );
 | 
			
		||||
                        }}
 | 
			
		||||
                        linkPath={'/tvshows/' + elem.Id}
 | 
			
		||||
                    />
 | 
			
		||||
                )}
 | 
			
		||||
                data={this.state.loading ? [] : this.data}
 | 
			
		||||
                initialLoadNr={20}
 | 
			
		||||
            />
 | 
			
		||||
        );
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user